Memory Leak

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
User avatar
hakkuo23
This is my homepage
This is my homepage
Posts: 88
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Aug 05, 2010 5:04 pm

Memory Leak

Post by hakkuo23 »

Ok, Minecraft crashed on my machine, so I ssh into it this morning, and I find this error:
INFO] Starting Minecraft server on 64.74.97.92:25565
Stacktrace:


Native stacktrace:

mono() [0x4911ea]
mono() [0x4e064f]
mono() [0x41b187]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10060) [0x7fe3e59f8060]
mono() [0x51e838]
[0x40368496]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Also memory usage is at 75% and the server isn't even running. How can I find out what's hogging my ram?
User avatar
hakkuo23
This is my homepage
This is my homepage
Posts: 88
Joined: Thu Aug 05, 2010 5:04 pm

Re: Memory Leak

Post by hakkuo23 »

Here is top:

10060 root 20 0 12.3g 11g 11m S 100 72.2 523:54.65 java

WTF?!?!? Java isn't even running lol
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Memory Leak

Post by Edge100x »

The fact that the error you quoted talks about mono tells me that it was generated by something other than Java, as Java does not use mono. If you're running a server wrapper that requires it, it could be that the wrapper crashed, and Minecraft is still running in the background and no longer being managed.

Definitely try to kill that hog with "kill 10060". If that doesn't work, "kill -9 10060".
User avatar
hakkuo23
This is my homepage
This is my homepage
Posts: 88
Joined: Thu Aug 05, 2010 5:04 pm

Re: Memory Leak

Post by hakkuo23 »

Ok, that seemed to fix it, but it's still crashing. This is the only error I get
2012-01-07 13:32:58 [INFO] Connection reset
2012-01-07 13:37:09 [INFO] Connection reset
2012-01-07 13:39:08 [INFO] Connection reset
2012-01-07 13:51:29 [INFO] Connection reset

11728 root 20 0 12.2g 1.3g 12m S 100 8.4 27:40.14 java
User avatar
hakkuo23
This is my homepage
This is my homepage
Posts: 88
Joined: Thu Aug 05, 2010 5:04 pm

Re: Memory Leak

Post by hakkuo23 »

2012-01-07 13:57:11 [SEVERE] Exception in thread "Thread-5"
2012-01-07 13:57:11 [SEVERE] java.util.ConcurrentModificationException
2012-01-07 13:57:11 [SEVERE] at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
2012-01-07 13:57:11 [SEVERE] at java.util.HashMap$KeyIterator.next(HashMap.jav

Got that error.
User avatar
hakkuo23
This is my homepage
This is my homepage
Posts: 88
Joined: Thu Aug 05, 2010 5:04 pm

Re: Memory Leak

Post by hakkuo23 »

FOUND A FIX (server hasn't crashed in 1hour)
sudo nano /etc/cron.d/php5

# 09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -minde$

It's a bug with php5 in ubuntu oneric.

http://ubuntuforums.org/showthread.php?p=11359503
User avatar
hakkuo23
This is my homepage
This is my homepage
Posts: 88
Joined: Thu Aug 05, 2010 5:04 pm

Re: Memory Leak

Post by hakkuo23 »

Nevermind lol. Still having the issue.
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Memory Leak

Post by Edge100x »

PHP should not be involved.

With Java only using 1.3 GB of of its virtual 12.2 GB, you aren't seeing a problem due to memory usage. Your error with java.util.ConcurrentModificationException is likely from a bug in a plugin.

What is your full log information? What is your command line? Did you install the server as we recommend at http://www.nfoservers.com/forums/viewto ... =67&t=5049? Have you stopped using the wrapper and begun running it directly?
Post Reply