• 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: Strange Problem - too many Connections?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange Problem - too many Connections?


  • Subject: Re: Strange Problem - too many Connections?
  • From: Jonathan Rochkind <email@hidden>
  • Date: Tue, 3 Feb 2004 13:06:35 -0600

At 10:11 AM -0800 2/3/04, Chuck Hill wrote:
Just one more question: setting the JVM memory size. Is setting the jvm parameters like -Xms50M and -Xmx200M in Monitor's "Additional Arguments" the way to go?

Yes.

Another way to do this (I think! someone tell me if this in fact won't work for some reason!) is to set those arguments as JVM options of the application project itself. In OSX 10.2.8 Project Builder (it is likely similar in Panther/XCode), go to the _main_ target for the application, click on it, look at Settings/Expert View, and you'll see a "JVM_OPTIONS" variable, with an empty value. You can add the arguments there, as well, and it will be built into the compiled product such that the app is always started with these arguments.


I'm 95% sure this works. Someone please tell me if it doesn't for some reason (it would certainly explain why my app seems to get OutOfMemory from time to time despite the fact that I keep upping the max heap size! But I think in fact my app just occasionally wants lots of memory, for reasons I have yet to determine, and I am succesfully increasing the max heap size).

--Jonathan


Thanks, I will also have a look at your "shamelessPlug" as soon as it hits the shelves ;-)
It's always nice to see some more books on WO!


:-)

Chuck

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net

It is a funny thing about life; if you refuse to accept
anything but the best, you very often get it."
  --  W. Somerset Maugham

<shamelessPlug>
Practical WebObjects
http://www.amazon.com/exec/obidos/tg/detail/-/1590592964
</shamelessPlug>
_______________________________________________
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.

References: 
 >Strange Problem - too many Connections? (From: Christian Mittendorf <email@hidden>)
 >Re: Strange Problem - too many Connections? (From: Kaj Hejer <email@hidden>)
 >Re: Strange Problem - too many Connections? (From: Christian Mittendorf <email@hidden>)
 >Re: Strange Problem - too many Connections? (From: Chuck Hill <email@hidden>)
 >Re: Strange Problem - too many Connections? (From: Christian Mittendorf <email@hidden>)
 >Re: Strange Problem - too many Connections? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Strange Problem - too many Connections?
  • Next by Date: Re: Weird EOF exception
  • Previous by thread: Re: Strange Problem - too many Connections?
  • Next by thread: Re: Strange Problem - too many Connections?
  • Index(es):
    • Date
    • Thread