• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How much memory should be allocated to the JVM?

New Here ,
Feb 29, 2008 Feb 29, 2008

Copy link to clipboard

Copied

On our server we've seen errors related to Java heap space on a number of occasions: "Error","jrpp-63","02/26/08","04:00:15","FTLAdminApp","Java heap space "Error","jrpp-663","02/21/08","20:38:01","FTLAdminApp","Java heap space "Error","jrpp-323","02/20/08","16:02:29","FTLAdminApp","Java heap space
We suspect we just need to increase the limits currently in place, but would prefer not to do so blindly.
Please advice.
TOPICS
Advanced techniques

Views

562

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 29, 2008 Feb 29, 2008

Copy link to clipboard

Copied

If the server is just a web server running CF and not used for anything else, you can use between 50-80%.

It can also depend on what OS and base server you are using since they may have extended abilities that require memory to process.

One thing I remember reading back when we started using MX6 & 7 was that if you have a dedicated server for web, you should set the Min and Max size to the same level so it doesn;t have to keep managing the memory - it just keeps the same memory available for Java services all the time then.

I've never tested whether there is a great benefit to doing this, but it's the way ours is setup and we don't see any issues with it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 01, 2008 Mar 01, 2008

Copy link to clipboard

Copied

Thanks for you reply.

We are using Windows 2003 with 8 GB of RAM with ColdFusion 8 on a dedicated Web server which connects to a SQL db server.

I have seen messages which recommend not to use more than 1024 MB, do you agree?


PietBr

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 01, 2008 Mar 01, 2008

Copy link to clipboard

Copied

LATEST
If you're on a 32-bit platform, the most you can reasonably allocate to the JVM is ~1.5GB. Read more here:
http://www.talkingtree.com/blog/index.cfm/2007/8/29/CF8-Performance-64-bit

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation