Do you need to read the whole file in or could you process it line by line

Russ Michaels
www.michaels.me.uk
cfmldeveloper.com
cflive.net
cfsearch.com
On 19 Dec 2013 06:54, "John M Bliss" <[email protected]> wrote:

>
> The FileRead function seems to have the same problem as cffile. "Java heap
> space" errors. Am I doing something wrong?
>
>
> On Mon, Dec 9, 2013 at 5:34 PM, richpaul7 . <[email protected]> wrote:
>
> >
> > 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 <[email protected]>
> 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" <[email protected]> wrote:
> > >
> > > >
> > > > And for 32 bit?
> > > > On Dec 9, 2013 5:14 PM, "Steve 'Cutter' Blades" <
> > > > [email protected]> 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:357367
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to