PermGen Space - Out of memory

Hello,

we have a lot of problems with a new agent we developed for Domino.

The Agents consumes a web service.

Therefore it uses Axis 1.4, Apache HTTP Client 3.1, Apache Commons Logging and some other libraries.

This agent needs to run every 5 minutes.

After some runs we get error messages like:

PermGen space


java.lang.OutOfMemoryError: PermGen space

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

at java.lang.ClassLoader.defineClass(ClassLoader.java:465)

at lotus.domino.AgentLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:392)

at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)

at allianz.gin.ws.reuters.soap.messages.ReutersWSFacade.createServiceToken(ReutersWSFacade.java:74)

at allianz.gin.ws.reuters.WSClient.init(WSClient.java:199)

at allianz.gin.ws.reuters.WSClient.getOtherStocks(WSClient.java:130)

at allianz.gin.ws.reuters.agents.AgGetReuters.doDailyExport(AgGetReuters.java:188)

at allianz.gin.ws.reuters.agents.AgGetReuters.runAgent(AgGetReuters.java:305)

at de.pentos.base.domino.AgentBase.NotesMain(AgentBase.java:322)

at lotus.domino.AgentBase.runNotes(Unknown Source)

at lotus.domino.NotesThread.run(Unknown Source)


This Link explains something about the PermGen Space problem: http://www.freshblurbs.com/explaining-java-lang-outofmemoryerror-permgen-space

Is it possible to change the PermGen Space size for Domino JVMs?

What other solutions are available?

Regards

Martin