Hugo Santos Newbie

Joined: 10 May 2012 Posts: 2
|
Posted: Wed May 30, 2012 6:13 am Post subject: how to config jvm -xms -xmx options for libreoffice |
|
|
Hi!
I have a class that needs more than 1GB to run. when i try to run, i can see the memory usage increasing and next to 256 MB it crashes. So, i need to increase jvm -xms -xmx options for libreoffice, i would like a solution without "superuser" ways. But its welcome too someone with it.
I'm using UNO API and making a Java addon.
I tested executing on code like
| Code: |
Adaptador adapter = new Adaptador();
adapter.startAdaptation();
|
or calling to run a script this away
| Code: |
try {
XPackageInformationProvider xPackageInformationProvider =
PackageInformationProvider.get(SpeechOO.m_xContext);
//gets the path of the addon
String oxtLocation = xPackageInformationProvider.
getPackageLocation(SpeechOO.extensionIdentifier).substring(7);//take off "file:/"
System.out.println(oxtLocation+"/dialogs/runnewufpaspeech.sh");
//sets script executable
File f = new File(oxtLocation+"/dialogs/runnewufpaspeech.sh");
f.setExecutable(true);
//runs script
Process x = Runtime.getRuntime().exec(oxtLocation+"/dialogs/runnewufpaspeech.sh");
System.out.println("x: "+x.waitFor());
} catch (IOException ex) {
Logger.getLogger(SpeechOO.class.getName()).log(Level.SEVERE, null, ex);
} catch (InterruptedException ex) {
Logger.getLogger(SpeechOO.class.getName()).log(Level.SEVERE, null, ex);
}
|
Both solutions crashed on the same way. I really think its a problem with jvm or libreoffice memory options.
thanks for help! |
|