So I'm writing some code just proof of concept at this stage.
It traverses directories and renames images and puts them in relative folders based on the picture taken date if available or the file date if not.
It was running fine, but sometimes it gets a timeout 50 seconds message.
After that, it just doesn't work at all. I can run the page and it just sits there forever doing nothing.
Im not even sure where to look log file wise with railo, but no error or anything just sitting there forever. I feel one of the images has crashed the server or something, but who knows. Other pages in the webapp still run.
Hard to debug with no error, any help appreciated.
Regards
Dale Fraser
If I were in your shoes, I'd start by turning on debugging in the CFML server (if it isn't already on) and adding cftrace calls at key points within the logic, and then turn it loose on a very simple/small portion of the directory structure to see if that sheds any light on where things are going astray.
I wrote my own recursion,
Function calling itself.
I ended up installing ColdFusion and running the app from there to get a more meaningful message.
I had an infinite loop, ColdFusion told me the cfloop tag timed out, easy
Railo told me the app timed out not on the loop or even in the loop, not so easy.
Odd that Railo actually timed out once then seemd to just run the loop forever.
All sorted though, thanks.
After running this on a large set of images however
Railo 3.3.1.000 Error (java.lang.OutOfMemoryError) | |
Message | Java heap space |
Cause | java.lang.OutOfMemoryError |
Interesting the out of memory persists after a Railo restart that seems strange to me.
From: ra...@googlegroups.com [mailto:ra...@googlegroups.com] On Behalf Of Ron Stewart
Sent: Wednesday, 7 December 2011 11:04 PM
To: ra...@googlegroups.com
Subject: [railo] Re: Crash / Hang
If I were in your shoes, I'd start by turning on debugging in the CFML server (if it isn't already on) and adding cftrace calls at key points within the logic, and then turn it loose on a very simple/small portion of the directory structure to see if that sheds any light on where things are going astray.
--
/ron
Interesting the out of memory persists after a Railo restart that seems strange to me.
Digging further, it seems that its not the volume but specific files causing the memory issue.
Once I find a sample image that causes it, I'll post more.
From: ra...@googlegroups.com [mailto:ra...@googlegroups.com] On Behalf Of Michael Offner
Sent: Wednesday, 7 December 2011 11:43 PM
To: ra...@googlegroups.com
It cant handle large images.
It’s a 9mb image not that large by today's standards.
Crashes doing this
<cfimage source="#files.directory#\#files.name#" name="img" />
I can put the image somewhere if anyone wanted to duplicate it.
Your right,
Opened it, save as jpg (it was already jpg)
Then it processes fine. Something weird about that jpg.
I made my program allow for them anyway by catching the errors and handling the image.
Thanks
> Im not even sure where to look log file wise with railo
Where to look is (by default) in <webroot>/WEB-INF/railo/logs directory.
That includes both the standard logs
(application.log,exception.log,etc) and any custom logs you create.
And of course requesttimeout.log which would probably have helped
diagnose the issue quicker. :)