Jump to content

Server running out of memory


xypista

Recommended Posts

Created a server with a bunch of mods. It loads up fine, I can connect to it from the client, however after a few minutes it throws

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread ***

Where *** may different on crashes. I saw Listen thread, Server thread, Connection #1 read thread.

 

I started with -Xmx2G, raised to 3G then 4G, and -XX:MaxPermSize=128m (raised to 256->512), still doing it. The machine have 8gigs of RAM.

So I guess one of the mods eating up all the memory, so the question is which one? Any advice how to find it? Disabling them one by one is a little painful. The list of mods: http://pastebin.com/GpGt64r9

FML Log

(Only myself playing on the server)

 

1.6.4 - Latest Forge (9.11.1.965)

Java 64bit - 1.7.0_51

Link to comment
Share on other sites

Try to supply next to the Xmx argument the Xms like:

-Xms2G -Xmx2G

 

and make sure both have the same value. Tell us if that helps.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

Removed ProjectRed and Magic Bees mods and the problem was gone. I didn't tested them one-by-one so don't know which one was responsible.  No leaks in the log, hours of play without problem. Today I installed The Twilight Forest (which was not installed on the server before). When we created the portal, it immediately started to leak, and crashed after a few minutes. (OutOfMemoryError)

Log

 

It is really hard to test this one-by-one when sometimes it seems its okay, but it's not.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.