[Geoserver-users] GeoServer 1.7.3a + GeoWebCache in Glassfish 2.1

Is anyone running GeoServer 1.7.3a in Glassfish 2.1? I can't get GeoWebCache
to work. WMS requests through GWC appear to generate a few tiles then all of
GeoServer becomes unresponsive (including the Web UI.) Restarting Glassfish
brings GeoServer up again but it will only generate a few tiles then die
again.

I am using a small dataset. Non-GWC WMS requests against the same dataset
always work. I tried GeoServer 1.7.3a in Tomcat 6.0.18 and GeoWebCache works
as expected. But in Glassfish it does not work. I turned on verbose logging
in GeoServer, but there doesn't appear to be anything interesting in
geoserver.log or in the Glassfish server.log (i.e. there's no errors that I
can tell.)
--
View this message in context: http://www.nabble.com/GeoServer-1.7.3a-%2B-GeoWebCache-in-Glassfish-2.1-tp22792590p22792590.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Interesting. I wonder if this has something to do with H2 which is not used by gwc, I seem to remember Arne addressing some memory issues as of late. One thing to try might be to revert back to a gwc 1.0.x (pre H2 afaik) and see if the problem persists.

Arne: is this even possible to revert back?

James Patras wrote:

Is anyone running GeoServer 1.7.3a in Glassfish 2.1? I can't get GeoWebCache
to work. WMS requests through GWC appear to generate a few tiles then all of
GeoServer becomes unresponsive (including the Web UI.) Restarting Glassfish
brings GeoServer up again but it will only generate a few tiles then die
again.

I am using a small dataset. Non-GWC WMS requests against the same dataset
always work. I tried GeoServer 1.7.3a in Tomcat 6.0.18 and GeoWebCache works
as expected. But in Glassfish it does not work. I turned on verbose logging
in GeoServer, but there doesn't appear to be anything interesting in
geoserver.log or in the Glassfish server.log (i.e. there's no errors that I
can tell.)

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Here are my log files: http://www.nabble.com/file/p22805214/logs.zip
logs.zip I hope this helps and thanks for taking a look at this!
--
View this message in context: http://www.nabble.com/GeoServer-1.7.3a-%2B-GeoWebCache-in-Glassfish-2.1-tp22792590p22805214.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

The H2 leaks I've found become observable after a couple of million requests with 4 threads in parallel, the tiles get slow, but with 104 you get an OOM soon thereafter. I think you could revert, but I'd be surprised if that's the issue here.

Looking at the logs, it looks like getcapabilities is coming up blank, so I am a bit surprised that GWC shows any layers at all:
2009-03-31 09:40:59,274 INFO [util.GetCapabilitiesConfiguration] - Constructing from url http://localhost:8080/geoserver/wms?request=GetCapabilities
(and then nothing)

I don't really see any error messages in those logs, but the earlier thread with Mike ("GeoWebCache not finding layers in GeoServer") who was also on Glassfish, this looked like the problem. Does Glassfish have any security settings that prevent servlets from making HTTP requests?

Do we prioritize testing on Glassfish? I'm guessing blindly at this point.

-Arne

Justin Deoliveira wrote:

Interesting. I wonder if this has something to do with H2 which is not used by gwc, I seem to remember Arne addressing some memory issues as of late. One thing to try might be to revert back to a gwc 1.0.x (pre H2 afaik) and see if the problem persists.

Arne: is this even possible to revert back?

James Patras wrote:
  

Is anyone running GeoServer 1.7.3a in Glassfish 2.1? I can't get GeoWebCache
to work. WMS requests through GWC appear to generate a few tiles then all of
GeoServer becomes unresponsive (including the Web UI.) Restarting Glassfish
brings GeoServer up again but it will only generate a few tiles then die
again.

I am using a small dataset. Non-GWC WMS requests against the same dataset
always work. I tried GeoServer 1.7.3a in Tomcat 6.0.18 and GeoWebCache works
as expected. But in Glassfish it does not work. I turned on verbose logging
in GeoServer, but there doesn't appear to be anything interesting in
geoserver.log or in the Glassfish server.log (i.e. there's no errors that I
can tell.)
    
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

I was able to reproduce this with topp:states. I'm not sure if Glassfish has
a configuration option that prevents HTTP requests but I'll take a look. The
strange thing is is that sometimes it does seem to generate a few tiles
before Glassfish needs to be restarted. I'll play around with some of the
Glassfish configuration and see what I can figure out.
--
View this message in context: http://www.nabble.com/GeoServer-1.7.3a-%2B-GeoWebCache-in-Glassfish-2.1-tp22792590p22830242.html
Sent from the GeoServer - User mailing list archive at Nabble.com.