on ‎2008 Jun 13 7:59 PM
I wrote a Java program object for XIr2 that is running into some OutOfMemory errors when opening reports with large data sets. How can I increase the heap size for my Program object? This would be similar to the java command "java -Xms64m -Xmx256m <class>" to set the initial and maximum heap sizes. I didn't see any options for this in the CMC or as a command line parameter to the Job Server in the CCM.
Thanks,
Ryan
Request clarification before answering.
Log onto the CMC, and in the "Arguments" field for the Program Object Process -> Parameters, add the following:
{-jvmArgs -Xms64m -Xmx256m}
and that will add the contents to the Java exe command-line.
Sincerely,
Ted Ueda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After some additional testing, I'm having another problem -- my app takes command line arguments as parameters. I've tried to combine the required arguments with the -jvmArgs flag in a few ways.
1. "Argument1 -jvmArgs -Xms64m -Xmx256m" -- the app thinks there are no arguments supplied
2. "-jvmArgs -Xms64m -Xmx256m Argument1" -- the JVM thinks that Argument1 is my Java class name
What's the solution to this?
On a related note, are there any other flags available aside from -jvmArgs? Is this documented somewhere?
That was it, I glossed over those braces. Adding that works brilliantly, so thanks yet again.
Is there a document somewhere that explains this and other options available when working with Program objects? I don't recall seeing it in the Dev Library anywhere, but I could have easily missed it out there.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.