!uptime does not return mem usage

Issue #19 resolved
Tyler Waugh created an issue

Currently uptimes is not returning the memory usage of the java server. Running the top -b -n 1 -d 4 -p $(pgrep -u minecraft "^java$" | head -1) | fgrep -h "server" | head -n 1 | tr -s ' ' | cut -d ' ' -f 7 command in console solo does not either. Something up with the bash-fu?

Comments (6)

  1. Riot

    Could not reproduce this bug,

    top -b -n 1 -d 4 -p $(pgrep -u minecraft "^java$" | head -1) | fgrep -h "server" | head -n 1 | tr -s ' ' | cut -d ' ' -f 7 is confirmed as working perfectly, and the bot's uptime returns correctly.

    The only situation where this would fail is if there is no java process running anything with "server" in its name for it to report on.

  2. Tyler Waugh reporter

    I checked top manually and there was the java server process and !uptime wasn't reporting the memory usage correctly. This was just after the incident a few days ago when the bot stopped responding to all ! commands.

  3. Riot

    If this recurs, please grab a pastebin of the current top and ps auxf output to aid in further diagnosis. On Renegade and Obrussa you can just pipe commands to the pastebinit command to upload pastes quickly.

  4. Log in to comment