cffile read 47 MB

2013-12-09 Thread John M Bliss

Hi, I'm attempting to perform a cffile read on a 47 MB XML file. It's
failing but ACF10 is not throwing an error to the browser. Finally dug into
the logs and am seeing Java heap space errors. My JVM is configured as
such:

Min JVM Heap Size - 256
Max JVM Heap Size - 512
JVM Arguments - -XX:MaxPermSize=192m

Solution is just to increase those numbers? Does this behavior seem odd?

-- 
John Bliss - http://about.me/jbliss


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357318
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cffile read 47 MB

2013-12-09 Thread Dave Watts

 Hi, I'm attempting to perform a cffile read on a 47 MB XML file. It's
 failing but ACF10 is not throwing an error to the browser. Finally dug into
 the logs and am seeing Java heap space errors. My JVM is configured as
 such:

 Min JVM Heap Size - 256
 Max JVM Heap Size - 512
 JVM Arguments - -XX:MaxPermSize=192m

 Solution is just to increase those numbers? Does this behavior seem odd?

Are you just doing a CFFILE read? Or are you also converting it into
an XML object? Because that will increase the internal memory size
needed by quite a bit.

But yes, you can probably fix this by allocating more memory to the
JVM. Nowadays, if you're running a 64-bit version of CF, you can throw
a lot of memory at it and avoid these types of problems most of the
time.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357319
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cffile read 47 MB

2013-12-09 Thread Steve 'Cutter' Blades

Looks like you're still using the default install values. On a 64-bit 
system, I generally look at my overall RAM available, subtract 2GB for 
the OS, then adjust my CF RAM availability according to what's left,  
starting at 1 GB max, 256 min, then gradually move up half a gig as 
required. Finding the right balance in your JVM config (min, max, gc, 
etc) can really help tweak the performance of your application.

Steve 'Cutter' Blades
Adobe Community Professional
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer

http://cutterscrossing.com


Co-Author Learning Ext JS 3.2 Packt Publishing 2010
https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book

The best way to predict the future is to help create it

On 12/9/2013 4:01 PM, John M Bliss wrote:
 Hi, I'm attempting to perform a cffile read on a 47 MB XML file. It's
 failing but ACF10 is not throwing an error to the browser. Finally dug into
 the logs and am seeing Java heap space errors. My JVM is configured as
 such:

 Min JVM Heap Size - 256
 Max JVM Heap Size - 512
 JVM Arguments - -XX:MaxPermSize=192m

 Solution is just to increase those numbers? Does this behavior seem odd?




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357320
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cffile read 47 MB

2013-12-09 Thread John M Bliss

And for 32 bit?
On Dec 9, 2013 5:14 PM, Steve 'Cutter' Blades 
cold.fus...@cutterscrossing.com wrote:


 Looks like you're still using the default install values. On a 64-bit
 system, I generally look at my overall RAM available, subtract 2GB for
 the OS, then adjust my CF RAM availability according to what's left,
 starting at 1 GB max, 256 min, then gradually move up half a gig as
 required. Finding the right balance in your JVM config (min, max, gc,
 etc) can really help tweak the performance of your application.

 Steve 'Cutter' Blades
 Adobe Community Professional
 Adobe Certified Expert
 Advanced Macromedia ColdFusion MX 7 Developer
 
 http://cutterscrossing.com


 Co-Author Learning Ext JS 3.2 Packt Publishing 2010

 https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book

 The best way to predict the future is to help create it

 On 12/9/2013 4:01 PM, John M Bliss wrote:
  Hi, I'm attempting to perform a cffile read on a 47 MB XML file. It's
  failing but ACF10 is not throwing an error to the browser. Finally dug
 into
  the logs and am seeing Java heap space errors. My JVM is configured as
  such:
 
  Min JVM Heap Size - 256
  Max JVM Heap Size - 512
  JVM Arguments - -XX:MaxPermSize=192m
 
  Solution is just to increase those numbers? Does this behavior seem odd?
 



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357321
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cffile read 47 MB

2013-12-09 Thread Russ Michaels

On 32bit you can only use around 1gb, it will fail to start if you assign
too much.

Russ Michaels
www.michaels.me.uk
cfmldeveloper.com
cflive.net
cfsearch.com
On 9 Dec 2013 22:25, John M Bliss bliss.j...@gmail.com wrote:


 And for 32 bit?
 On Dec 9, 2013 5:14 PM, Steve 'Cutter' Blades 
 cold.fus...@cutterscrossing.com wrote:

 
  Looks like you're still using the default install values. On a 64-bit
  system, I generally look at my overall RAM available, subtract 2GB for
  the OS, then adjust my CF RAM availability according to what's left,
  starting at 1 GB max, 256 min, then gradually move up half a gig as
  required. Finding the right balance in your JVM config (min, max, gc,
  etc) can really help tweak the performance of your application.
 
  Steve 'Cutter' Blades
  Adobe Community Professional
  Adobe Certified Expert
  Advanced Macromedia ColdFusion MX 7 Developer
  
  http://cutterscrossing.com
 
 
  Co-Author Learning Ext JS 3.2 Packt Publishing 2010
 
 
 https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book
 
  The best way to predict the future is to help create it
 
  On 12/9/2013 4:01 PM, John M Bliss wrote:
   Hi, I'm attempting to perform a cffile read on a 47 MB XML file. It's
   failing but ACF10 is not throwing an error to the browser. Finally dug
  into
   the logs and am seeing Java heap space errors. My JVM is configured
 as
   such:
  
   Min JVM Heap Size - 256
   Max JVM Heap Size - 512
   JVM Arguments - -XX:MaxPermSize=192m
  
   Solution is just to increase those numbers? Does this behavior seem
 odd?
  
 
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357323
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cffile read 47 MB

2013-12-09 Thread Matt Quackenbush

Switch to 64-bit. :-)

(Seriously. There's not much hope for memory-intensive operations on a
32-bit machine. You're limited to only being able to utilize something like
3.4GB of RAM, and that just ain't gonna cut it.)


On Mon, Dec 9, 2013 at 5:25 PM, John M Bliss bliss.j...@gmail.com wrote:


 And for 32 bit?
 On Dec 9, 2013 5:14 PM, Steve 'Cutter' Blades 
 cold.fus...@cutterscrossing.com wrote:

 
  Looks like you're still using the default install values. On a 64-bit
  system, I generally look at my overall RAM available, subtract 2GB for
  the OS, then adjust my CF RAM availability according to what's left,
  starting at 1 GB max, 256 min, then gradually move up half a gig as
  required. Finding the right balance in your JVM config (min, max, gc,
  etc) can really help tweak the performance of your application.
 
  Steve 'Cutter' Blades
  Adobe Community Professional
  Adobe Certified Expert
  Advanced Macromedia ColdFusion MX 7 Developer
  
  http://cutterscrossing.com
 
 
  Co-Author Learning Ext JS 3.2 Packt Publishing 2010
 
 
 https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book
 
  The best way to predict the future is to help create it
 
  On 12/9/2013 4:01 PM, John M Bliss wrote:
   Hi, I'm attempting to perform a cffile read on a 47 MB XML file. It's
   failing but ACF10 is not throwing an error to the browser. Finally dug
  into
   the logs and am seeing Java heap space errors. My JVM is configured
 as
   such:
  
   Min JVM Heap Size - 256
   Max JVM Heap Size - 512
   JVM Arguments - -XX:MaxPermSize=192m
  
   Solution is just to increase those numbers? Does this behavior seem
 odd?
  
 
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357322
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cffile read 47 MB

2013-12-09 Thread richpaul7 .

use the FileRead function.  it can handle large files and doesn't suck up
all the resources.  forget trying to use CFFILE for large files.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_e-g_13.html




On Mon, Dec 9, 2013 at 2:30 PM, Russ Michaels r...@michaels.me.uk wrote:


 On 32bit you can only use around 1gb, it will fail to start if you assign
 too much.

 Russ Michaels
 www.michaels.me.uk
 cfmldeveloper.com
 cflive.net
 cfsearch.com
 On 9 Dec 2013 22:25, John M Bliss bliss.j...@gmail.com wrote:

 
  And for 32 bit?
  On Dec 9, 2013 5:14 PM, Steve 'Cutter' Blades 
  cold.fus...@cutterscrossing.com wrote:
 
  
   Looks like you're still using the default install values. On a 64-bit
   system, I generally look at my overall RAM available, subtract 2GB for
   the OS, then adjust my CF RAM availability according to what's left,
   starting at 1 GB max, 256 min, then gradually move up half a gig as
   required. Finding the right balance in your JVM config (min, max, gc,
   etc) can really help tweak the performance of your application.
  
   Steve 'Cutter' Blades
   Adobe Community Professional
   Adobe Certified Expert
   Advanced Macromedia ColdFusion MX 7 Developer
   
   http://cutterscrossing.com
  
  
   Co-Author Learning Ext JS 3.2 Packt Publishing 2010
  
  
 
 https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book
  
   The best way to predict the future is to help create it
  
   On 12/9/2013 4:01 PM, John M Bliss wrote:
Hi, I'm attempting to perform a cffile read on a 47 MB XML file. It's
failing but ACF10 is not throwing an error to the browser. Finally
 dug
   into
the logs and am seeing Java heap space errors. My JVM is configured
  as
such:
   
Min JVM Heap Size - 256
Max JVM Heap Size - 512
JVM Arguments - -XX:MaxPermSize=192m
   
Solution is just to increase those numbers? Does this behavior seem
  odd?
   
  
  
  
  
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357324
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cffile read 47 MB

2013-12-09 Thread Byron Mann

Provided with a disclaimer, as I asked a Java friend about this and he
suggested something called Stax api for xml parsing.

I did some quick research and found this article. It would be more Java
than CF, but hey CF plays nice with that.

http://www.javacodegeeks.com/2013/05/parsing-xml-using-dom-sax-and-stax-parser-in-java.html

Based on that, I would imagine, CF uses a Dom parser based on its parsing
performance.

All a bit dependent on the required outcome however as this may be overkill
if you just need to read the file.

Are you parsing and searching xml, or just doing some file manipulation
stuff?

Byron Mann
Lead Engineer  Architect
HostMySite.com
On Dec 9, 2013 5:04 PM, John M Bliss bliss.j...@gmail.com wrote:


 Hi, I'm attempting to perform a cffile read on a 47 MB XML file. It's
 failing but ACF10 is not throwing an error to the browser. Finally dug into
 the logs and am seeing Java heap space errors. My JVM is configured as
 such:

 Min JVM Heap Size - 256
 Max JVM Heap Size - 512
 JVM Arguments - -XX:MaxPermSize=192m

 Solution is just to increase those numbers? Does this behavior seem odd?

 --
 John Bliss - http://about.me/jbliss


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357325
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ColdFusion Developer / Mobile Application Developer - Linthicum, MD

2013-12-09 Thread Chris Longo

We are looking for:

5+ years experience in ColdFusion
5+ years experience in MS SQL server
1+ years experience with HTML5
1+ years experience with CSS3
3+ years experience with JavaScript
3+ years experience with jQuery
Some experience working with mobile application development PhoneGap is a PLUS

You will be the lead developer on a team of 4. You will be the main point of 
contact for all ColdFusion related issues the more junior developers are having.

Interested parties should send their resume to clo...@anchortechnical.com 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-jobs-talk/message.cfm/messageid:4641
Subscription: http://www.houseoffusion.com/groups/cf-jobs-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-jobs-talk/unsubscribe.cfm


ColdFusion Developer / Mobile Application Developer - Linthicum, MD

2013-12-09 Thread Chris Longo

We are looking for:

5+ years experience in ColdFusion
5+ years experience in MS SQL server
1+ years experience with HTML5
1+ years experience with CSS3
3+ years experience with JavaScript
3+ years experience with jQuery
Experience with mobile application development (any framework)

PhoneGap experience is a PLUS

You will be the lead developer on a team of 4. You will be the main point of 
contact for all ColdFusion related issues the more junior developers are having.

Interested parties should send their resume to clo...@anchortechnical.com 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-jobs-talk/message.cfm/messageid:4642
Subscription: http://www.houseoffusion.com/groups/cf-jobs-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-jobs-talk/unsubscribe.cfm