In my last post ( http://planetlotus.org/735190 ), I've mentioned adding JavaDebugString=-XX:MaxPermSize=256M in my workstation's notes.ini increased the heap size.But,it doesn't seems true when I tested with following piece of code ,
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
//Get the jvm heap size.
long heapSize = Runtime.getRuntime().totalMemory();
//Print the jvm heap size.
System.out.println("Heap Size = " + heapSize);
} catch(Exception e) {
e.printStackTrace();
}
}
It says 16777216 in both the cases. Does this setting only works on server's ini file or something wrong with my settings ? So, here are still my unanswered questions,
* How do I increase heap size of Java agents on client or server machine ?
* I assume increasing heap size may affect server performance, So is it possible to increase for just one agent or database ?
I've tried changing HTTPJVMMaxHeapSize but no effect.
September 7, 2010 at 9:29 PM
The Notes.Ini parameter "JavaMaxHeapSize" could help you, e.g. "JavaMaxHeapSize=256MB"
September 7, 2010 at 10:11 PM
@Andy,
Thanks, let me try.
September 7, 2010 at 11:58 PM
@Andy, That won't change the PermGen space. Which is what Rishi is trying to do.
Not sure if that setting works on the client or not, but they changed how you can enter parameters. See the following tech note.
http://www-01.ibm.com/support/docview.wss?uid=swg21410374
September 8, 2010 at 12:01 AM
Simon,
I've tried "JavaDebugString" on my client but it didn't work. I will be surprised if it's only work on server.