VMware vSphere

 View Only
Expand all | Collapse all

Changing amount of memory HQ server can use

  • 1.  Changing amount of memory HQ server can use

    Posted Jan 30, 2008 05:35 PM
    We have a server with 8gig of physical memory.

    The Linux OS is taking about 512 mb and i would like to give hyperic server some more memory but not sure what would be the best configuration.

    I would like to give it 4gig to play with ie the JVM.

    It currently set at
    server.java.opts=-XX:MaxPermSize=192m -Xmx512m

    Does anyone have any suggestion on the best setting to have with that amount of memory I have to play with.

    Cheers

    Simon


  • 2.  RE: Changing amount of memory HQ server can use

    Broadcom Employee
    Posted Jan 30, 2008 05:48 PM
    Hi Simon

    You can put it:

    server.java.opts=-XX:MaxPermSize=192m -Xmx512m -Xms512m

    or

    server.java.opts=Xmx1024m -Xms1024m


  • 3.  RE: Changing amount of memory HQ server can use

    Posted Jan 30, 2008 08:58 PM
    Hi Simon

    > Does anyone have any suggestion on the best setting
    > to have with that amount of memory I have to play
    > with.

    Give HQ Memory as much as you can, but think of other services for example if you run the HQ database on the same host.
    Other important parameters: number of agents (and metrics) you want to monitor, number of HQ users and what kind of services you monitor.


    >
    > Cheers
    >
    > Simon

    Cheers,
    Mirko


  • 4.  RE: Changing amount of memory HQ server can use

    Posted Jan 31, 2008 10:28 AM
    Cheers guys,

    We have a seperate Oracle database server, so the app server just has hyperic engine to run.

    So for 4gig I should be able to give it :

    server.java.opts=Xmx4096m -Xms4096m ????

    Also with regards to agent, I was looking at the tuning instructions, does anyone know where you change to max lather conns and database thread pool, they dont seem to be in the referenced files on the docs

    Cheers

    Simon


  • 5.  RE: Changing amount of memory HQ server can use

    Posted Jan 31, 2008 01:02 PM
    I changed it to server.java.opts=-Xmx4096m -Xms4096m

    Which it took, but now it has errors:

    2008-01-31 12:59:50,156 INFO [RMI TCP Connection(98)-127.0.0.1] [STDOUT] java.lang.OutOfMemoryError: PermGen space

    Lots of PermGen space reported in log.

    So does the PermGen depend on the MaxPermSize size being set.

    If so would it be better to put:

    "-XX:MaxPermSize=192m -Xmx4096m -Xms4096m"

    Can a higher MaxPermSize be used as well?

    Cheers

    Simon


  • 6.  RE: Changing amount of memory HQ server can use

    Broadcom Employee
    Posted Jan 31, 2008 05:10 PM
    I think that this two configurations are the best:

    server.java.opts=-XX:MaxPermSize=192m -Xmx512m -Xms512m
    OR
    server.java.opts=-Xmx1024m -Xms1024m

    4Gb is too much memory for a Java, the gc has a lot of work and it make decrement the performance.


  • 7.  RE: Changing amount of memory HQ server can use

    Posted Jan 31, 2008 05:57 PM
    In general, the memory settings HQ runs with by default will be fine for most installations. The majority of memory usage is from HQ's internal caches which can be monitored via the "HQ Health" link in the administration section in 3.2.

    Only in environments of 50 or more platforms should the memory settings need to be changed. In that case I'd recommend only bumping up the Xmx setting. In most cases -Xmx=1024m will be sufficient.

    In either case the MaxPermSize setting is required, and should not need to be changed unless you run into Permgen errors.

    -Ryan


  • 8.  RE: Changing amount of memory HQ server can use

    Posted Feb 05, 2008 11:11 PM
    Thanks for the advice.

    However, how do I change this setting with the Windows version of Hyperic HQ? I see where you would do it in hq-server.sh, but I don't think this is used on Windows. I start up the server with hq-server.exe, which is not a file that I can edit.

    Thanks,
    Brian


  • 9.  RE: Changing amount of memory HQ server can use

    Broadcom Employee
    Posted Feb 05, 2008 11:45 PM
    %SERVER_HOME%\conf\hq-server.conf


  • 10.  RE: Changing amount of memory HQ server can use

    Posted Feb 05, 2008 11:57 PM
    > However, how do I change this setting with the
    > Windows version of Hyperic HQ? I see where you would
    > do it in hq-server.sh, but I don't think this is used
    > on Windows. I start up the server with hq-server.exe,
    > which is not a file that I can edit.

    On Windows you can just pass the extra memory parameters to hq-server.exe when installing the service. I don't have a Windows machine handy to test, but an example would be:

    hq-server.exe -i -Xmx1024m -XX:MaxPermSize=128m

    -Ryan


  • 11.  RE: Changing amount of memory HQ server can use

    Posted Feb 07, 2008 10:25 AM
    Haven't tested the GC tuning with HQ, but when one wants to adjust memory or other parameters on JVM process, there's two good articles to read on the topic:

    Tuning Garbage Collection with the 5.0 Java[tm] Virtual Machine
    http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html

    Java HotSpot VM Options
    http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp