cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

PE Java Heap Size

ptc-3050150
1-Newbie

PE Java Heap Size


Well, got my 38,000 page book up to PTC to see if they can get it to compile. They got the 13,000 page chapter to PDF stably...something I haven't been able to do yet.

Do any of you have any experience setting the Java heap size for the PE?

Setting Tomcats appears rather straightforward, but that doesn't seem to affect the PE java services.

Thanks

John T. Jarrett
BAE Systems | Arbortext version 5.4 | LOGSA XSL-FO v 1.7

10 REPLIES 10

Hi John-



Have you tried the "set javavmmemory" setting in your init.acl file on
PE?



--Clay


Nope - thanks!

Tried that, got Java console up and running and it is showing 3 java processes.

On the heap memory usage page, Apache is set to 266MB max, Sun to 64MB and Arbortext pe\hc\consumerui.jar to 64MB max...setting javavmmemory=2000 didn't raise any of those max values.

Will test it again...highly annoying that it takes at least an hour for it to crash.

John T. Jarrett CDT
Sr. Tech Writer, Tech Pubs, ILS, Land & Armaments/Global Tactical Systems

T 832.673.2147 | ext 1147 | -<">mailto:->
BAE Systems, 5000 I-10 West, Sealy, Texas USA 77474
www.baesystems.com

Anyone know how to set APTJAVAVMARGS to increase java heap size?

Something like this in autoexec.bat? The docs just say use it but give zero examples...

Set APTJAVAVMARGS -Xmx2048m

John T. Jarrett CDT
Sr. Tech Writer, Tech Pubs, ILS, Land & Armaments/Global Tactical Systems

T 832.673.2147 | ext 1147 | -<">mailto:->
BAE Systems, 5000 I-10 West, Sealy, Texas USA 77474
www.baesystems.com

Hi John-



Autoexec.bat isn't really used any more. To set up a persistent
environment variable, right click the "My Computer" icon, select
Properties, then select the Advanced tab, click Environment variables,
and add the variable using the dialog that pops up. (That's XP; it will
be a little different in Vista, but should be pretty similar.)



--Clay


I have an init ACL that says:

if (!java_init(0)) {
set javavmmemory=1024
set javavmargs="-Xss2m"
}

Provided by support at one time or another.

On Tue, Jun 1, 2010 at 11:10 AM, Jarrett, John T (US SSA) <
-> wrote:

> Anyone know how to set APTJAVAVMARGS to increase java heap size?
>
>
>
> Something like this in autoexec.bat? The docs just say use it but give zero
> examples…
>
>
>
> Set APTJAVAVMARGS –Xmx2048m
>
>
>
> *John T. Jarrett CDT***
>
> Sr. Tech Writer, Tech Pubs, ILS, Land & Armaments/Global Tactical Systems
>
>
>
> T 832.673.2147 | ext 1147 | -
>
> BAE Systems, 5000 I-10 West, Sealy, Texas USA 77474
>
> www.baesystems.com
>
>
>
>
>
> *From:* Jarrett, John T (US SSA) [

and by "init ACL" I mean an acl file (mine is named set_javavmmemory.acl)
stored in PE's custom/init folder.

I should follow my own "style" and split out the javavmargs command into
its own ACL (set_javavmargs.acl) but I suspect, back when I set it up (and
the way I'm thinking now), I don't know how timing on those ACLs might
impact the pair of commands working or not.

It ain't broke ...

Thanks

Looks like back at 5.2 M120 Arbortext set it up so it could go in an environment variable and get it out of init.acl with APTJAVAVMARGS, they just don't bother to say how to use it *beats head on desk*

I tried it in an init.acl for the doctype but can't tell that it changed anything.

From what I can tell in a 32-bit environment you are limited to a setting of 1348m. I put 2048m in a system environment variable (ugh, autoexec.bat was great! Thanks Clay...) and Arbortext couldn't start a JVM session. Got down to 1100 and it is still too much.

Putting it in custom\doctype\production\instance.acl worked like you have it as well as putting it in as an environment variable a la Clay's instructions. Both equally crashed when set too high!

John T. Jarrett CDT
Sr. Tech Writer, Tech Pubs, ILS, Land & Armaments/Global Tactical Systems

T 832.673.2147 | ext 1147 | -<">mailto:->
BAE Systems, 5000 I-10 West, Sealy, Texas USA 77474
www.baesystems.com

Hi John-



Maybe there's an issue with the values you're trying. There might be
some useful info here:



The main error is that 2048 isn't valid in a 32-bit environment...I set it to 128m just so I could get back to testing and that's double the default...that works now.

John T. Jarrett CDT
Sr. Tech Writer, Tech Pubs, ILS, Land & Armaments/Global Tactical Systems

T 832.673.2147 | ext 1147 | -<">mailto:->
BAE Systems, 5000 I-10 West, Sealy, Texas USA 77474
www.baesystems.com

For one app I worked on we used to routinely set it to 512m, so you
should be able to go at least that high without any problems.



--Clay


Top Tags