Hi,

I have a problem with R14 errors.

I run a process in a worker dyno. It converts a list of images to a single 
pdf with imagemagick. It's well known that this tool uses a lot of memory. 
I'm currently making a syscall directly because it seems it works better 
than rmagick gem regarding the R14 errors. I can provide more details on 
this as I've tried many options here, limiting the memory, even talking 
with heroku support, etc 
(http://stackoverflow.com/questions/16918845/almost-solved-heroku-worker-dyno-giving-r14-errors-problems-with-memory-mana)

Eventually, the process throws R14 errors depending on the file I'm 
processing and also depending on the context (because it doesn't throw the 
errors always with the same files).

At the end, the files are sucessfully generated even with R14 errors. But I 
guess it's not a very stable situation for my production app.

I want to detect the R14 errors before they happen. I know oink gem but the 
situation is that I cannot call any method while the syscall is running. 
The R14 errors appear while the syscall is running. How can I predetect 
them in execution time? Something like a wrapper for this syscall which 
monitors the use of memory and throws a controlled exception if the memory 
usage is exceeded? Like Timeout::timeout but related to memory instead of 
time? :-s

Thanks to the community in advance.

PS: Other option is to use prawn, rghost or pdf::writter in order to create 
pdf pages with a single image on each, but...

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to