java - Mule hot deploy running out of PermGen -



java - Mule hot deploy running out of PermGen -

i have mule instance running numerous rss connectors, , have service running within same mule context receives rss feed updates/deletes/additions. when feed changes, service triggers hot deploy touching mule config file. works fine. mule reloads context , picks changes.

however, every time hot deploy, class loader reloads classes, duplicating initial permgen memory footprint every time. eventually, run out of permgen space, , mule crashes. doesn't matter how big create - every hot deploy demands more space. i'm monitoring in yourkit, fwiw.

i found generic info making servers utilize shared libraries, instead of loading new ones in every context. assume what's happening each time hot deploy occurs, new mule context created, , mule reloads classes new context instead of using ones loaded.

how can multiple hot deploys without running out of permgen?

thanks!

try adding "-xx:permsize=128m -xx:maxpermsize=256m" in run configuration->arguments tab-> vm arguments

java rss mule classloader

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -