• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Additional VM options [PARTIAL SOLUTION, follow up question]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Additional VM options [PARTIAL SOLUTION, follow up question]


  • Subject: Re: Additional VM options [PARTIAL SOLUTION, follow up question]
  • From: Karl Gretton <email@hidden>
  • Date: Fri, 12 Dec 2003 18:08:37 -0500

You just need to DOUBLE-CLICK on the target. Double-click on say Application Server and the old ProjectBuilder-style panel comes up and you can add your JVM options there.

As far as I know, there is no way to get to this through the menus.

Karl

On Dec 12, 2003, at 3:55 PM, MacFirst wrote:

on 12/12/03 3:15 AM, Daniel Muller <email@hidden> went on and on
saying, in part:


Addiotional VM options can be set on "Pure Java-Specific" pane:

<http://developer.apple.com/documentation/Java/Conceptual/ Project_Builder_for_
Java/BuildSystem/chapter_3_section_4.html#TPXREF118>


Hope this helps,
Daniel Muller

Nope, that's what I tried. From my original question:

I know I've done this before, but I can't seem to get it working and it's
driving me nuts...


In PB, with my main target selected (not Application server or Web Server),
CMD-OPT-E to edit target, Pure-java specific, Additional VM Options -- I add
"-Xmx100m"; clean all targets, build & run.


...My additional VM argument isn't there. It's also not in the ~.woa/ command
file.

So here's the partial answer:

* In the main project, edit active executable
* Under arguments/Launch arguments, add "-Xmx128m" or whatever

This makes the launch arguments look like...

Reading MacOSClassPath.txt ...
Launching MyApp.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System"
-DWOLocalRootDirectory=""
-DWOUserDirectory="/SACWAG/ManyFriends/War/WarServer/build" -Xmx512m
-classpath[... Etc., blah blah...]

Where everything except the "-Xmx512m" is supplied by WO. The reason it's a
PARTIAL solution is that having both the WO-supplied "-Xmx64m" and my
"-Xmx512m" doesn't seem to change the free memory at all (I used 512, so the
change would be noticable.) The 1st thing my app does is print out
Runtime.getRuntime().freeMemory(), and that number is unchanged from the
Xmx64m version, leading me to believe that my additional parameter is
ignored.


So, I realize that my question was "how do I add my launch argument", but
what I *MEANT* to ask was "How do I expand the available memory in my WO-app
under PB?"


Thanks!



--
Why would ANYONE want to live in a world where everyone is treated the
same?!
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Additional VM options [PARTIAL SOLUTION, follow up question]
      • From: email@hidden
References: 
 >Re: Additional VM options [PARTIAL SOLUTION, follow up question] (From: MacFirst <email@hidden>)

  • Prev by Date: Re: Additional VM options [PARTIAL SOLUTION, follow up question]
  • Next by Date: Auto-Reply to: webobjects-dev digest, Vol 1 #6
  • Previous by thread: Re: Additional VM options [PARTIAL SOLUTION, follow up question]
  • Next by thread: Re: Additional VM options [PARTIAL SOLUTION, follow up question]
  • Index(es):
    • Date
    • Thread