- changed status to invalid
!uptime does not return mem usage
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)
-
-
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.
-
If this recurs, please grab a pastebin of the current
top
andps auxf
output to aid in further diagnosis. On Renegade and Obrussa you can just pipe commands to thepastebinit
command to upload pastes quickly. -
making sure minecraft java process is correctly located even when there's more than one java process, ref
#19→ <<cset dc44cbf6e989>>
-
making sure uptime query works even with a shorter PID, ref
#19→ <<cset 1d8fcc0bda47>>
-
- changed status to resolved
Switching to new lionsarea world format, resolves issue 19 in lionsarea (http://code.minecraftonline.com/lionsarea/issue/19/flags-not-working-on-new-areas)
→ <<cset 15d0b5f7341a>>
- Log in to comment
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.