+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 21

Thread: GC overhead limit exceeded

  1. #11
    Senior Member
    Join Date
    May 2011
    Posts
    146
    Thanks
    2
    Thanked 0 Times in 0 Posts
    when I start the server using safemode, I think it does not give me enough memory to load up all the plugins. I am using a linux box with centos and I believe it is not a service on the remote box.

  2. #12
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,211
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    There are several ways to run ES5 from a Linux script. See Running ElectroServer. If you use one of the "java jar" scripts, you can specify the JVM's heap size by adding -Xmx64M (or whatever amount of Mb you want to give it) to the other options on the java jar line.

    If you want to revert your ES Admin's heap size instead of fooling with the command line and safemode, I can tell you how to use DbUtility to do that.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  3. #13
    Senior Member
    Join Date
    May 2011
    Posts
    146
    Thanks
    2
    Thanked 0 Times in 0 Posts
    if i use java -jar -Xms128M -Xmx128M lib/ElectroServer5-bootstrap.jar -mode StandAlone -config config/Configuration.xml, the server starts properly .. but if I set the heap size to 128M through es5 admin, the server does not start.

  4. #14
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,211
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    It sounds like your default JVM might be grabbing too much memory for the bootstrap process, or else that the ES Admin's settings were not made correctly. Can you give me a screen shot of the ES Admin's general settings, showing both the heap and command line boxes? and the ElectroServer5.log file for when you try to start ES5 without the java jar script, so that I can see the amount of memory that JVM is grabbing for the bootstrapper.

    Or you can just shrug and decide to use the java jar script. I use that kind of script all the time myself. If you use that and then use the ES Admin's Restart button, does it start correctly?
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  5. #15
    Senior Member
    Join Date
    May 2011
    Posts
    146
    Thanks
    2
    Thanked 0 Times in 0 Posts
    ESCapture.jpg


    i had started my server the last time using java jar script .. so i just restarted it from es5 admin and it did come up fine.

  6. #16
    Senior Member
    Join Date
    May 2011
    Posts
    146
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Attachment 227


    i had started my server the last time using java jar script .. so i just restarted it from es5 admin and it did come up fine.

  7. #17
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,211
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    It sounds like the problem is that 128M is close to the limit of the available memory on the box. The bootstrap process takes some memory, then there isn't 128M left for the main ES5 process. You can experiment with smaller amounts until you find one that works for you, or you can just continue to use the java jar start script.

    (or find a way to get more memory on your host - either killing other processes or moving to another server that has more RAM, etc)
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  8. #18
    Senior Member
    Join Date
    May 2011
    Posts
    146
    Thanks
    2
    Thanked 0 Times in 0 Posts
    If i start the server with "java -jar -Xms128M -Xmx128M lib/ElectroServer5-bootstrap.jar -mode StandAlone -config config/Configuration.xml" isn't it 128M minimum that it would get?

  9. #19
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,211
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    If you don't use the "-safemode" option on your java jar line, this reserves 128M for the bootstrap process, which then tries to create the main process but there isn't enough memory for it. If you add "-safemode" then it's just a single process and it ignores the ES Admin's command line parameters. When you use the Restart button on the ES Admin, it stays in the main process thread, shutting down and then starting again without making another process.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  10. #20
    Senior Member
    Join Date
    May 2011
    Posts
    146
    Thanks
    2
    Thanked 0 Times in 0 Posts
    two more questions
    1) do the bootstrap and main process share 128M ?
    2) what does the max heap size set (in es5 admin tool) .. right now in my startup script I have java -jar -Xms128M -Xmx128M lib/ElectroServer5-bootstrap.jar -mode StandAlone -config config/Configuration.xml and in the max heap size in es5 admin tool it says 64MB.

    Many Thanks!

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts