Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OutofMemory when trying to start twofishes #86

Open
canebat opened this issue Sep 11, 2015 · 1 comment
Open

OutofMemory when trying to start twofishes #86

canebat opened this issue Sep 11, 2015 · 1 comment

Comments

@canebat
Copy link

canebat commented Sep 11, 2015

I have a 2gb Ubuntu VPS and I'm trying to run twofishes on it. I cannot start twofishes because it usually crashes with an OutofMemoryError. I see two variations:

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded

or

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

I have upped the # of mapped files with:

sysctl -w vm.max_map_count = 131072

And I am starting twofishes by restricting the java memory allocation pool:

java -Xmx1g -Xms500m -jar server-assembly-0.84.9.jar --hfile_basepath INDEX_DIRECTORY

I tried variations of memory pool size (ie, Xms1g, Xms800m, etc) without success. I also have swap space set to 256mb, although I don't think it's helping.

Are there any optimal settings I can use to get it running on my 2gb instance?

@gadikotamohan
Copy link

gadikotamohan commented Feb 18, 2017

@canebat No. There is no way, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants