Re: Inline::Java timeout?

[email protected] Fri, 11 Apr 2014 13:52:15 +1000
Newsgroups perl.inline
Message-ID <59003629D0B54EACA16A89F40499A745@OwnerPC311012>
Hi Bill,

Looks like there’s no-one currently around here to help you out.
Maybe try somewhere like perlmonks (http://www.perlmonks.org) if you’re still trying to find a solution.

Cheers,
Rob
From: Bill Moseley 
Sent: Monday, April 07, 2014 1:43 PM
To: [email protected] 
Subject: Inline::Java timeout?
I'm just starting to research this issue and I'm not very familiar with Inline.   Using Inline::Java in a mod_perl application on CentOS 6.2, Perl v5.10.1, and $Inline::Java::VERSION = '0.53'. 


At times I find Apache processes that are old (meaning the child process was started perhaps days ago) and where strace shows the Apache process is waiting on a read() call.   The read is waiting on the socket connected to the server that top shows the command as:


  /usr/lib/jvm/java/bin/java org.perl.inline.java.InlineJavaServer 0 localhost 7891 true false false

The java is making a webservice call and my assumption is a response is never returned.

Is there a way to set a timeout, or do I need to trap ALRM and call alarm( $timeout )?

Thanks,


-- 
Bill Moseley
[email protected]