[Date Prev] [Date Next] [Prev in Thread] [Next in Thread] [Date Index] [Thread Index]

Re: Java Plugins - running out of memory



OutOfMemory is typically not enough Xmx, you have the option of moving some of the plugins out into another plugin server, or just increasing the memory available to that plugin server, your choice.

On Wed, Apr 25, 2018 at 7:14 AM, Mike Galat <Michael.Galat@caretech.com> wrote:

Hi Lister’s –

 

We are currently on 8.1.02 (working on upgrading to 9.1.4).  It seems like our Java plugins are being used more and more, with thinks like webservices, RKM, AI, etc., and we have been seeing an increasing numbers of memory errors in the arjavaplugin.log. Error such as:

 

2018-04-25 07:10:04,137 ERROR [pool-3-thread-2] com.bmc.arsys.pluginsvr.plugins.a (?:?) - getListEntryWithFields() FAILs in plugin: RMDY.ITSM.RKM.FILESYSTEM

java.lang.RuntimeException: Failed to get File System sources from [RKM:FileSystemSource]form.

                at com.bmc.itsm.rkm.ardbc.filesystem.helpers.ArHelper.getArSources(ArHelper.java:85)

                at com.bmc.itsm.rkm.ardbc.filesystem.RkmFileSystemPlugin.getListEntryWithFields(RkmFileSystemPlugin.java:198)

                at com.bmc.arsys.pluginsvr.plugins.a.ArdbcGlewf(Unknown Source)

                at com.bmc.arsys.pluginsvr.a.ArEsArdbcGlewf_5(Unknown Source)

                at com.bmc.arsys.pluginsvr.a.ArEsArdbcGlewf_4(Unknown Source)

                at com.bmc.arsys.arrpc.ARPluginServerDispatcher.dispatchOncRpcCall(Unknown Source)

                at com.bmc.arsys.arrpc.nio.ArRpcCallHandler.dispatchCall(Unknown Source)

                at com.bmc.arsys.arrpc.nio.ArRpcCallHandler.if(Unknown Source)

                at com.bmc.arsys.arrpc.nio.ArRpcCallHandler.processRpcCall(Unknown Source)

                at com.bmc.arsys.arrpc.nio.ArRpcCallHandler$Processor.run(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.OutOfMemoryError: Java heap space

 

2018-04-25 07:32:23,034 ERROR [pool-3-thread-16] com.bmc.arsys.pluginsvr.plugins.a (?:?) - getListEntryWithFields() FAILs in plugin: ARSYS.ARDBC.PENTAHO

java.lang.OutOfMemoryError: GC overhead limit exceeded

 

2018-04-25 07:32:35,349 ERROR [Thread-246] com.bmc.arsys.pluginsvr.d.b (?:?) - Plugin Termination Error

java.lang.OutOfMemoryError: GC overhead limit exceeded

 

2018-04-25 07:36:41,910 ERROR [pool-1-thread-2] com.bmc.arsys.arrpc.nio.ArSelectorThread (?:?) - Exception in selector thread loop. Shutting down selector thread10

java.lang.OutOfMemoryError: GC overhead limit exceeded

                at java.util.ArrayList.iterator(Unknown Source)

                at sun.nio.ch.WindowsSelectorImpl.updateSelectedKeys(Unknown Source)

                at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)

                at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)

                at sun.nio.ch.SelectorImpl.select(Unknown Source)

                at sun.nio.ch.SelectorImpl.select(Unknown Source)

                at com.bmc.arsys.arrpc.nio.ArSelectorThread.run(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                at java.lang.Thread.run(Unknown Source)

 

We are currently on Java 1.7.0_45, and what we have for memory sizes in the armonitor.cfg are:

 

Java Plugin

-Xmx

-XX:PermSize

-XX:MaxPermSize

D:\Program Files\BMC Software\ARSystem\pluginsvr

2048m

128m

128m

D:\Program Files\BMC Software\ARSystem\pluginsvr\fts\primary

1024m

D:\Program Files\BMC Software\ARSystem\pluginsvr\fts\secondary

1024m

D:\Program Files\BMC Software\ARSystem\diserver\data-integration

1024m

D:\Program Files\BMC Software\ARSystem\assignmentengine\bin

256m

D:\Program Files\BMC Software\AtriumCore\cmdb\plugins\ne

512m

D:\Program Files\BMC Software\AtriumCore\cmdb\plugins\shared

512m

 

Are these errors indicative of not giving enough memory (fixing by increasing the –Xmx?)

 

Or do I need to set more options, such as -XX:+UseConcMarkSweepGC  and/or -XX:+UseParNewGC in armonitor.cfg, such as, for the primary pluginsvr:

 

"D:\Program Files\Java\jre7\bin\java" -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=128m XX:+UseConcMarkSweepGC -XX:+UseParNewGC

 

Any suggestions would be welcome!

 

Thanks,


--
ARSList mailing list
ARSList@arslist.org
https://mailman.rrr.se/cgi/listinfo/arslist