|
From: <php...@li...> - 2009-11-02 18:12:13
|
Hi,
I'm using the PHP-Java-Bridge to implement fulltext search
capabilities with the help of Java Lucene for my web project. To index
new documents, a script is run by a cronjob every hour or so. Since I
switched to the new PJB Version 5.5.4, after some time (something
between 1-3 days), the following internal server error from Tomcat
occurs:
HTTP Status 500 - The server encountered an internal error () that
prevented it from fulfilling this request.
javax.servlet.ServletException: Servlet execution threw an exception
< in http://localhost:8080/JavaBridge/java/Java.inc on line 516
This is pretty scary, because from that moment on, my site gets
unusable and the error remains there. When I restart Tomcat (6.0)
everything works fine again.
Here are the lines from Java.inc for context:
if (function_exists("error_get_last"))
$error = error_get_last();
else
$error = array("message"=>"broken connection error");
trigger_error ("${msg} ".$error["message"], E_USER_ERROR);} (Line 516)
Anyone an idea what could be happening? Or alternatively some idea
like: "I don't know whats happening exactly, but it probably has to do
with ... and if you change this or that config param, it could get
better". That would be really great. I've got absolutely no idea how
to react on this (the best thing I though of is to restart tomcat
every hour by cronjob to prevent the worst (namely several hours of
site down), but that's probably not yet the optimal solution).
Thanx
Holger
|
|
From: <php...@li...> - 2009-11-02 20:06:00
|
Hi,
sounds as if tomcat ran out of resources.
Which OS, which java version do you use? Which exceptions do you see in the
tomcat log? Any OutOfMemory errors?
Do you close all files you have opened for your lucene searches? Does the
list returned by the linux/unix lsof command grow over time?
Did you upgrade both, the Java.inc front- and the JavaBridge.war back end?
Unless I made a serious mistake producing version 5.5.4, the PHP/Java Bridge
doesn't leak resources.
Regards,
Jost Boekemeier
On 2 Nov 2009 19:12, <php...@li...> wrote:
Hi,
I'm using the PHP-Java-Bridge to implement fulltext search
capabilities with the help of Java Lucene for my web project. To index
new documents, a script is run by a cronjob every hour or so. Since I
switched to the new PJB Version 5.5.4, after some time (something
between 1-3 days), the following internal server error from Tomcat
occurs:
HTTP Status 500 - The server encountered an internal error () that
prevented it from fulfilling this request.
javax.servlet.ServletException: Servlet execution threw an exception
< in http://localhost:8080/JavaBridge/java/Java.inc on line 516
This is pretty scary, because from that moment on, my site gets
unusable and the error remains there. When I restart Tomcat (6.0)
everything works fine again.
Here are the lines from Java.inc for context:
if (function_exists("error_get_last"))
$error = error_get_last();
else
$error = array("message"=>"broken connection error");
trigger_error ("${msg} ".$error["message"], E_USER_ERROR);} (Line 516)
Anyone an idea what could be happening? Or alternatively some idea
like: "I don't know whats happening exactly, but it probably has to do
with ... and if you change this or that config param, it could get
better". That would be really great. I've got absolutely no idea how
to react on this (the best thing I though of is to restart tomcat
every hour by cronjob to prevent the worst (namely several hours of
site down), but that's probably not yet the optimal solution).
Thanx
Holger
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-11-02 20:39:22
|
Oh, that sound reasonable, a couple of days ago I had some quote problems
on my virtual server, but I didn't bring this together.
Thanks a lot, cool if some people have a bit more oversight than oneself! :-))
Holger
2009/11/2 <php...@li...>:
> Hi,
>
> sounds as if tomcat ran out of resources.
>
> Which OS, which java version do you use? Which exceptions do you see in the
> tomcat log? Any OutOfMemory errors?
>
> Do you close all files you have opened for your lucene searches? Does the
> list returned by the linux/unix lsof command grow over time?
>
> Did you upgrade both, the Java.inc front- and the JavaBridge.war back end?
>
> Unless I made a serious mistake producing version 5.5.4, the PHP/Java Bridge
> doesn't leak resources.
>
> Regards,
> Jost Boekemeier
>
> On 2 Nov 2009 19:12, <php...@li...> wrote:
>
> Hi,
> I'm using the PHP-Java-Bridge to implement fulltext search
> capabilities with the help of Java Lucene for my web project. To index
> new documents, a script is run by a cronjob every hour or so. Since I
> switched to the new PJB Version 5.5.4, after some time (something
> between 1-3 days), the following internal server error from Tomcat
> occurs:
>
> HTTP Status 500 - The server encountered an internal error () that
> prevented it from fulfilling this request.
> javax.servlet.ServletException: Servlet execution threw an exception
> < in http://localhost:8080/JavaBridge/java/Java.inc on line 516
>
> This is pretty scary, because from that moment on, my site gets
> unusable and the error remains there. When I restart Tomcat (6.0)
> everything works fine again.
> Here are the lines from Java.inc for context:
>
> if (function_exists("error_get_last"))
> $error = error_get_last();
> else
> $error = array("message"=>"broken connection error");
> trigger_error ("${msg} ".$error["message"], E_USER_ERROR);} (Line 516)
>
>
> Anyone an idea what could be happening? Or alternatively some idea
> like: "I don't know whats happening exactly, but it probably has to do
> with ... and if you change this or that config param, it could get
> better". That would be really great. I've got absolutely no idea how
> to react on this (the best thing I though of is to restart tomcat
> every hour by cronjob to prevent the worst (namely several hours of
> site down), but that's probably not yet the optimal solution).
>
> Thanx
> Holger
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|