I have a designer project that contains unit-tests (Pyunit) for one of our modules. I can repeatably generate an out-of-memory situation. Takes about 5000 executions of a designer/client scope script executed by our module code - at a 100ms rate. Here’s the console error:
And sure enough the gatway console memory display shows that the PermGen space is full. Only about 25% of my heap space is in use. So my question is: What is the PermGen space, is there something I should be doing to mitigate this, can I size it? Is this also a gateway issue ?
Here’s my designer startup script:
java -cp $LAUNCH_DIR/launchclient.jar -Djavaws.sr.gateway.addr.0="localhost:8088:8043/main" -Djavaws.sr.scope="D" -Djavaws.sr.main=com.inductiveautomation.ignition.designer.DesignerStartupHook -Xmx1024M -Xdebug -XX:HeapDumpPath="/Users/me/Datafile" -XX:+HeapDumpOnOutOfMemoryError -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9000 com.inductiveautomation.ignition.client.launch.BootstrapSwing
I’ve tried attaching the heap dump file a few times, but it’s kinda big.