DX NetOps

Expand all | Collapse all

Tomcat web server memory allocation and performance issues

  • 1.  Tomcat web server memory allocation and performance issues

    Posted 02-06-2018 06:26 AM

    Good day, we are using Spectrum 10.2.1 on a RH Linux server.

    I have both CAPC and UIM integrated to my OneClick server (there are 3 of these configured in a load balanced setup) and find very serious performance issues on the "integration" OC server.

    Whenever i re-allocate 4 or 8GB memory to the Web Server (Linux has 16GB in total, 4x vCPU) and restart the Tomcat server, 8GB is allocated, but after a an hour or so, it defaults back to 2560MB every time and the web server starts experiencing performance problems.

    $ top
    top - 13:11:28 up 20 days, 5:18, 3 users, load average: 3.00, 3.06, 2.97
    Tasks: 188 total, 3 running, 185 sleeping, 0 stopped, 0 zombie
    %Cpu(s): 11.5 us, 0.3 sy, 0.0 ni, 88.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
    KiB Mem : 16268680 total, 221392 free, 9792908 used, 6254380 buff/cache
    KiB Swap: 8388604 total, 8388604 free, 0 used. 5681604 avail Mem

     

    Is there any way I can keep the 8GB of memory allocated to the web server because i dont have the processing issues once this is active and running?

     

    When i check the catalina.out file, the following error message repeats many times once the Web server starts getting into trouble

    Line 6643: Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: GC overhead limit exceeded
    Line 6644: Exception in thread "Timer-0" java.lang.OutOfMemoryError: GC overhead limit exceeded
    Line 6645: java.lang.OutOfMemoryError: GC overhead limit exceeded

     

    thanks 

    regards

    Arnold 



  • 2.  Re: Tomcat web server memory allocation and performance issues

    Posted 02-06-2018 07:48 AM

    Make sure that BOTH the $SPECROOT/custom/common/config/tomcat-server-config.xml and the $SPECROOT/bin/catalina.sh (linux) or $SPECROOT/bin/oneclickservice.conf (windows) file have the 8GB configured.  

     

    Also, make sure you don't have the "-Djava.compiler=NONE' entry" configured either:

     

    CA Spectrum OneClick performance degraded due to configuration setting.  

     

    HTH 

    Jay



  • 3.  Re: Tomcat web server memory allocation and performance issues

    Posted 02-06-2018 08:08 AM

    How do you "reallocate" memory? You change the setting in the Tomcat Administration page, don't you? The message you see in the logs is more a consequence than a cause to me.