Dear Community,
I have been Facing an Java PermGen size error, which causes the model to be loading always , when I clicked on any model in Publisher
I tried couple of commands via ACC but nothing worked.
Appreciate if any of the fellow members help on this.
Following is the exception thrown:
IT_15231a619c2_WARNING 2016-01-11T17:05:15,202 BPError - com.idsscheer.aris.businesspublisher.application.search.dbnotifier.DatabaseChangeNotifier.checkAndDeliverEvents
Could not deliver database change events: PermGen space
java.lang.OutOfMemoryError: PermGen space
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:395)
at sun.reflect.MethodAccessorGenerator.generateConstructor(MethodAccessorGenerator.java:94)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:48)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.reflect.Proxy.newInstance(Proxy.java:748)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:739)
at org.apache.tomee.jdbc.TomEEDataSourceCreator$TomEEDataSource.getConnection(TomEEDataSourceCreator.java:265)
at com.idsscheer.aris.businesspublisher.application.dao.util.ADAOUtils.getDBConnection(ADAOUtils.java:178)
at com.idsscheer.aris.businesspublisher.application.dao.util.ADAOUtils.getDBConnection(ADAOUtils.java:159)
at com.idsscheer.aris.businesspublisher.application.dao.database.ASystemBaseDAO.getDatabaseChangeEvents(ASystemBaseDAO.java:1151)
at com.idsscheer.aris.businesspublisher.application.dao.database.ABPDatabaseChangeEventDataProvider$ABPInitializedDatabaseChangeEventDataProvider.getDatabaseChangeEvents(ABPDatabaseChangeEventDataProvider.java:65)
at com.idsscheer.aris.businesspublisher.application.dao.database.ABPDatabaseChangeEventDataProvider.getDatabaseChangeEvents(ABPDatabaseChangeEventDataProvider.java:22)
at com.idsscheer.aris.businesspublisher.application.search.dbnotifier.DatabaseChangeNotifier.checkAndDeliverEvents(DatabaseChangeNotifier.java:100)
at com.idsscheer.aris.businesspublisher.application.search.dbnotifier.DatabaseChangeNotifier.run(DatabaseChangeNotifier.java:86)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Dear Zuheb,
Look into file generated.apptypes.cfg where the basic parameters for the runnable businesspublisher_... are defined.
In ARIS Cloud Controller you can reconfigure them, e.g increasing an _s sized runnable to _m:
reconfigure businesspublisher_s +"JAVA-XX\\:MaxPermSize"="256m" +JAVA-Xmx="3g"
But be careful with lacking PermGen size as the root-cause since that runnable uses 256m from _s up to _l sizing.
Cheers
Rune