House of Fusion
Home of the ColdFusion Community

Search cf-talk

December 02, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31       

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

Increasing Max Memory

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Steve Moore
08/20/2008 12:28 PM

I'm trying to increase the allowed memory for CF to accommodate large file uploads. I've experimented with various settings, but can't seem to correlate them with the file size I'm trying. Currently trying to upload a 300Mb file. Have the following settings in the Java and JVM window: Maximum JVM Heap Size (MB): 1024; JVM Arguments: -XX:MaxPermSize=384m. Upload attempt results in the error: coldfusion.util.MemorySemaphore$MemoryUnavailableException: Memory required (300616607 bytes) exceeds the maximum allowed memory. Are there other settings, or changes to the above, that will allow me to perform this upload? Steve Moore Larimer County Colorado

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kelly
08/20/2008 12:35 PM

In CFAdmin if you go to Settings and scroll down to Request Size Limits, what are your settings there? I believe the Maximum Size of Post Data would need to be at least 300Mb. Kelly Steve Moore wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
08/20/2008 12:37 PM

----- Excess quoted text cut - see Original Post for more ----- The maximum memory you can allocate on a 32-bit Windows OS is less than 1.5 GB. You should be able to upload the file with 1 GB allocated, but you will need to change the maximum file upload size if you're using CF 8 (I don't remember if that option is in 7, off the top of my head). Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Brad Wood
08/20/2008 01:07 PM

Yeah, the setting was part of 7. Steve, to clarify, log into your ColdFusion Administrator for that server. Click on the "Settings" menu under "Server Settings" There should be two settings in there that might affect you: Near the top of the page there is a setting called "Maximum size of post data"  Change the number in the text input to be as large or larger than what you are trying to upload. Also, check out the "Request Throttle Memory" setting at the bottom of the page. ~Brad

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Steve Moore
08/26/2008 05:28 PM

Thanks for the ideas. It appears the Request Throttle Memory setting was the limiting factor. Once upped, I can successfully upload files to that limit. Steve

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Brian Kotek
08/26/2008 05:43 PM

Just a note to be careful with this. Each upload is going to use up a CF thread for the entire duration of the upload, which means that if you have 10 threads allocated to CF and 10 people upload large files, you've used up all of your CF threads for quite a long time. > Thanks for the ideas. It appears the Request Throttle Memory setting was > the limiting factor. Once upped, I can successfully upload files to that > limit. > > Steve


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists