You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by ed...@vaisala.com on 2006/08/21 23:53:44 UTC

Strange behavior after upgrading FOP

We use Apache FOP to render PDFs in a web application.  I was using
0.20.5 until recently when I read that that version had a few known
memory leaks.  Our application was experiencing such leaks so I upgraded
to the software on the FOP trunk as of 8/16/2006.  The memory leaks went
away and our system was performing better than ever from Wednesday
through Thursday last week.  Then on Friday the web application stopped
responding.  The Jconsole attached to the JVM didn't give any hint as to
the problem.  Memory was good.  The JVM was still able to provide stats
using jmap and jinfo but the application would no longer respond.

 

I gathered what info I could and attempted to stop the Jetty servlet
container in order to restart it.  Jetty wouldn't go down.  I tried
kill.  Then I tried kill -9 and it still wouldn't go down!  Finally I
had to reboot the linux box on which the web application runs.
Immediately upon reboot and auto-restart of Jetty, the web app stopped
responding as before.  Still no indication as to the problem.  A few
more kill, kill -9, reboot cycles later and the system is running
wonderfully as it did on Wed. and Thurs.

 

Has anyone experienced such strangeness after upgrading FOP?  This is
perplexing.

 

Edward Newton
Software Engineer III
Vaisala, Inc.
2705 E. Medina Road, Tucson, AZ 85706 USA
Tel: 520.806.7382
Fax: 520.741.2848
E-mail: ed.newton@vaisala.com
Division Website: http://www.vaisala.com/thunderstorm
Corporate Website: http://www.vaisala.com <http://www.vaisala.com/> 

 

This message contains privileged and/or confidential information
intended solely for the use of the addressee(s) named above. Any
disclosure, distribution, copying or use of the information by others is
strictly prohibited. If you have received this message in error, please
advise the sender by immediate reply and delete the original message.

U.S. Export Restrictions & Disclaimer: Export of any technical
information contained in this email and/or its attachments is subject to
the export control laws and regulations of the U.S. Government and may
require a valid license or written approval prior to export. 

 


Re: Strange behavior after upgrading FOP

Posted by "J.Pietschmann" <j3...@yahoo.de>.
ed.newton@vaisala.com wrote:
> I gathered what info I could and attempted to stop the Jetty servlet
> container in order to restart it.  Jetty wouldn't go down.  I tried
> kill.  Then I tried kill -9 and it still wouldn't go down!

There should be no way for a Java program to prevent the JVM from
going down on a kill signal, let alone a kill -9. The latter
usually indicates the JVM hangs somewhere in kernel code, some
suspects:
- a bug in a device driver
- a hardware defect
- corruption of a kernel related binary or a device driver
There are of course half a zillion other possibilities, including
problems with thread deadlocks mentioned elsewhere.
Your options: Run a hard disc health check. Make sure the box is
pingable on all interfaces after it hangs. Try to run the code on
another machine, preferably on another JVM and/or OS, and check
whether the problem pops up there too.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Strange behavior after upgrading FOP

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Aug 21, 2006, at 23:53, ed.newton@vaisala.com wrote:

Hi,

<snip />
> I gathered what info I could and attempted to stop the Jetty  
> servlet container in order to restart it.  Jetty wouldn’t go down.   
> I tried kill.  Then I tried kill -9 and it still wouldn’t go down!   
> Finally I had to reboot the linux box on which the web application  
> runs.  Immediately upon reboot and auto-restart of Jetty, the web  
> app stopped responding as before.  Still no indication as to the  
> problem.  A few more kill, kill -9, reboot cycles later and the  
> system is running wonderfully as it did on Wed. and Thurs.
>
>
>
> Has anyone experienced such strangeness after upgrading FOP?  This  
> is perplexing.
No such stories heard so far, I'm afraid, but given the setup, it  
sounds like a possible multi-threading issue, maybe a nasty deadlock  
somewhere... ?

If you could provide us with more detailed info about what happened,  
we might get a clue, but OTOH, it seems strange that FOP by itself  
could trigger something as persistent as that.

All you can do FTM is hope it doesn't happen again, but try to  
monitor closely --logging output? What was the last thing the threads  
were doing right before they blocked? That might give us a hint about  
which area of the code needs to be investigated.


Cheers,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org