Coldfusion 8 Memory Issues Causing 500 Error

Hello Experts,

Ok, so I've been having issues uploading large files (1GIG +) using Coldfusion 8.  So after several google searches and experimenting with the Memory Setting in the "Settings" page, I ran into an issue.

Basically, I set the three memory settings in the coldfusion admin settings page to: 4096MB.  (my server has a total memory of 4Gig)

Because of this change, I am now getting the following error on the Coldfusion Admin page, everytime I launch it to revert the change.

500
ROOT CAUSE:
coldfusion.util.MemorySemaphore$MemoryUnavailableException: Memory required (141 bytes) exceeds the maximum allowed memory.

Is there a config file I can modify to revert the setting back to their default values?

Thanks!
Anthony
LVL 1
aescribensAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

erikTsomikSystem Architect, CF programmer Commented:
well you can try changing the heap size in CF Admin. But i do not know what other implications this can lead
0
_agx_Commented:
> Is there a config file I can modify to revert the setting back to their default values?

Yes, the memory settings are usually stored in the jvm.config file under java.args.  It's location depends on your configuration.  Example, on a developer version it's C:\ColdFusion8\runtime\bin\jvm.config

Even though your current settings aren't working, always make a back-up of the jvm.config first, because if you mess up other settings it can prevent the server from booting entirely.
0
_agx_Commented:
> well you can try changing the heap size in CF Admin

@Erik, they said they can't access the CF Admin due to the new settings.
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

aescribensAuthor Commented:
@agx,

I just accessed the jvm.config file and can't find the parameters to modify the memory allocation settings.

This is what I see in that file:

#
# VM configuration
#
# Where to find JVM, if {java.home}/jre exists then that JVM is used
# if not then it must be the path to the JRE itself
java.home=C:/ColdFusion8/runtime/jre
#
# If no java.home is specified a VM is located by looking in these places in this
# order:
#
#  1) bin directory for java.dll (windows) or lib/<ARCH>/libjava.so (unix)
#  2) ../jre
#  3) registry (windows only)
#  4) JAVA_HOME env var plus jre (ie $JAVA_HOME/jre)
#

# Arguments to VM
java.args=-server -Xmx512m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Xbatch -Dcoldfusion.rootDir={application.home}/../ -Djava.security.policy={application.home}/../lib/coldfusion.policy -Djava.security.auth.policy={application.home}/../lib/neo_jaas.policy -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/cfform/jars -Dcoldfusion.libPath={application.home}/../lib

#
# commas will be converted to platform specific separator and the result will be passed
# as -Djava.ext.dirs= to the VM
java.ext.dirs={jre.home}/lib/ext

#
# where to find shared libraries
java.library.path={application.home}/../lib,{application.home}/../jintegra/bin,{application.home}/../jintegra/bin/international
system.path.first=false

#
# set the current working directory - useful for Windows to control
# the default search path used when loading DLLs since it comes
# before system directory, windows directory and PATH
java.user.dir={application.home}/../../lib

# JVM classpath
java.class.path={application.home}/servers/lib,{application.home}/../lib/macromedia_drivers.jar,{application.home}/lib/cfmx_mbean.jar,{application.home}/lib

–Dcoldfusion.fckupload=true

0
_agx_Commented:
> # Arguments to VM
> java.args=-server -Xmx512m

IIRC, those are the main memory settings configured from the CF admin.  But it doesn't look like it's been changed. At least not to 4G.  The file location I mentioned was just for reference ie for the developer version/built in web server.  What's your actual configuration (web server, etc..)?

0
aescribensAuthor Commented:
So to be clear, the three settings I am referring to are the following:

- Maximum Size Of Post Data
- Request Throttle Threshold
- Request Throttle Memory

They were all set to 4Gigs (4096MB to be exact).

I did a search on "jvm.config" and only found 1 file in the following directory: C:\ColdFusion8\runtime\bin\jvm.config
0
_agx_Commented:
Oh, that's different!  Those settings should be stored in C:\ColdFusion8\lib\neo-runtime.xml.  CF _should_ make an auto back-up of the file (same directory) before applying the changes. Look for a file named  neo-runtime.bak.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
_agx_Commented:
> Look for a file named  neo-runtime.bak.

   You can either edit the existing neo-runtime.xml file or replace it with the backup file.  As mentioned before,
   these are key configuration files. So always make backups first.
0
aescribensAuthor Commented:
Yes!  I found the neo-runtime.xml and neo-runtime.bak files... Do I simply edit the neo-runtime.xml file, save it and it should work?
0
aescribensAuthor Commented:
It worked!!!!  I had to restart the CF App Service... But I'm back up!  Thank You!   :)
0
_agx_Commented:
It's probably simpler to just rename the backup file ie  neo-runtime.bak => neo-runtime.xml ... than to edit manually.  But either should work.  You'll may have to shutdown CF though.
0
_agx_Commented:
Sorry, our posts collided.  Great! Glad to here everything's back to normal now.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.