users@glassfish.java.net

Better 502 Error Logging

From: <glassfish_at_javadesktop.org>
Date: Mon, 22 Dec 2008 06:15:10 PST

I'm running GFv2 behind an Apache server and the error logs for Apache show sporadic 502 errors. I traced some of the issues down to a client with an oversized cookie based on this:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=5181

After resolving that there are still other 502 errors coming from GF to Apache.

There doesn't seem to be any clear pattern for them. They are infrequent and don't represent a large percentage of the overall requests but I would like to know why they occur and if they can be fixed. GF doesn't log anything of value for tracing or reproduction the issues. The request is logged but no exception is raised.

Activating logging at the FINEST level would tell me more but that's not really an option in a production environment. Does anyone have a more surgical approach to capturing information about why GF is returning a 502 response? Are there specific logging levels I can use to find these?
[Message sent by forum member 'dennisv' (dennisv)]

http://forums.java.net/jive/thread.jspa?messageID=322941