+ Reply to Thread
Results 1 to 5 of 5

Thread: Java memory heap ?

  1. #1
    Eric is offline x10Hosting Member Eric is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    4

    Java memory heap ?

    When i go to run my java based game server app i get this error

    Code:
    java.io.IOException: error=12, Cannot allocate memory
    
    Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.
    When "googling" around for a fix it brings me to solutions about heap space and such?

    Im certain its not physically running out of memory as i have ran this same game server on smaller boxes with 256mb of ram

    If anyone has any knowledge with this type of issue please let me know!!

    ( i am running Centos on the x3 plan)

    -Eric
    Last edited by Eric; 08-04-2010 at 01:54 PM.

  2. #2
    toyowheelin's Avatar
    toyowheelin is offline Community Advocate toyowheelin is an unknown quantity at this point
    Join Date
    Dec 2009
    Location
    Kirkland WA
    Posts
    153

    Re: Java memory heap ?

    This may not work but just doing some quick googling produced this fix http://stackoverflow.com/questions/1...y-calling-runt

  3. #3
    nastus is offline x10Hosting Member nastus is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    90

    Re: Java memory heap ?

    You have to lower the amount of memory your using to run it, for eg.. a starter command might say -xmx1000m you would have to lower 1000m to lets say 750m or 500m if you using x3 you do not have much memory and should probably just pay the extra 5-8 bucks for an upgrade :P

  4. #4
    Eric is offline x10Hosting Member Eric is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    4

    Re: Java memory heap ?

    Many thanks for the replies and it seems i dont have "permission" when i go to try and allocate java more memory on my server.. Now i am wondering if i do upgrade ( i plan on upgrading to the x9 later this week) will i get the same error as it seems its a server side configuration so far and i dont have the correct permissions to set it myself.

    when i run @toys fix i get

    [root@server144121 ~]# echo 0 > /proc/sys/vm/overcommit_memory
    -bash: echo: write error: Operation not permitted


    @nastus where would i run that command in my buildfile i have it set correct as far as i know

    http://pastebin.com/KquNdjza

    Not sure if you know much about java i hope you do so you can help me

    But in that file it has the lines

    Code:
      jvmarg value="-Xms128m" 
                            jvmarg value="-Xmx512m"
    I have tried lowering those rates to 64mb 128mb etc and still got this error

    http://pastebin.com/pYzmY55L

    So of course the main question at hand would be if i did upgrade my hosting would it ultimately fix my issue or would i still run into this problem?

    Many thanks guys
    Last edited by Eric; 08-04-2010 at 11:37 PM.

  5. #5
    Eric is offline x10Hosting Member Eric is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    4

    Re: Java memory heap ?

    Just a quick update for those who were wondering i have tried diffrent things and was able to get one java app running. working on a few other fixes right now! will post final solution ( if i ever find one) when done!

+ Reply to Thread

Similar Threads

  1. too much memory being used
    By scylla in forum Free Hosting
    Replies: 8
    Last Post: 01-06-2010, 03:37 PM
  2. Out of Memory Error
    By randombum in forum Free Hosting
    Replies: 9
    Last Post: 08-23-2008, 12:58 PM
  3. What kinds of USB memory stick are suitable for use as Vista memory
    By frankfriend in forum Computers & Technology
    Replies: 16
    Last Post: 07-09-2008, 07:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers