[dev] Can I increase the jvm heap size for OpenOffice?

2005-08-24 Thread Michael Mi

Hi,

I wrote a java component for OpenOffice, but unfortunately, it needs too 
much memory which results in a jvm heap overflow.


Is there any way to increate the jvm heap size for OpenOffice?

Thanks

Michael

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Can I increase the jvm heap size for OpenOffice?

2005-08-24 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

add the following parameters to the java options
(Tools - Options... - OpenOffice.org - Java - Parameters...)

- -Xms64M(min)
- -Xmx128M  (max)

if you want to watch your programs behaviour you can use
the parameter (java 1.5 is required)

- -Dcom.sun.management.jmxremote

Start ...\Java\jdk1.5.0\bin\jconsole.exe to connect to the JVM

HTH

Oliver

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDDDy4TiyrQM/QSkURAvrzAJ9R3m22v89uFvkMNHVvKwuMC5G7HgCfRJpi
D+Ss4mdK5pkIJA8HI0COLHM=
=bDJf
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Can I increase the jvm heap size for OpenOffice?

2005-08-24 Thread Joachim Lingner
Although you can use a -X option, bear in mind that this is only sure to 
work with a Sun JRE. IMHO you should file an issue with the Java guys. 
The VM should adjust their heap size dynamically. Native applications 
(running on modern hardware and OS) typically do not have this 
restriction. They can consume memory until virtual memory is exhausted 
(the OS may of course offer a way to limit the virtual memory granted to 
processes).


Also notice that there is no way to create installation sets, which set 
specific Java options during installation. That is, users would have to 
manually set this option later.


--Joachim



Michael Mi wrote:

Hi,

I wrote a java component for OpenOffice, but unfortunately, it needs too 
much memory which results in a jvm heap overflow.


Is there any way to increate the jvm heap size for OpenOffice?

Thanks

Michael

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]