Glassfish Log turnover problem

I’m working on getting an application working with the glassfish gem but
I’m
having an issue with how it handles log files. It looks like glassfish
is
rolling over my log files at the 2MB but it will not create a new file
and
it eventually locks up and will no longer serve requests (maybe because
the
logging buffer is full??). At this point the only solution is a restart
of
the server. There is a post
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/6f00e02ae47ce316?fwc=1&pli=1that
mentions the same problem. Does anyone know what this is? I would
also like to know how to configure this log file rolling behavior
because
I’ve never seen a setting for this.

Joe

Does anyone at least know where to file bug reports for the GlassFish
gem?
I can’t seem to find where they have them. We have this issue and the
issue
of GlassFish running all the Rails initializers twice that are
complicating
our deployment with GlassFish that I would like to file bugs for.
Thanks.

Joe

Bugs against Glassfish Gem should be filed at
http://rubyforge.org/tracker/?atid=21080&group_id=5450&func=browse

There does seem to be some issue with the log file rotation, I’ll try to
look into it.

Joseph A. wrote:

would also like to know how to configure this log file rolling
behavior because I've never seen a setting for this.

Joe

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

There are some known issues with logging, [1] and [2]. These issues are
being worked on and will be available in the next gem version (in couple
of
weeks). Apparently [1] is the cause of what you are experiencing related
to
rotation of log files.

Since rotation is not working so you as well disable it. Do the
following to
turn it off:

The setting for the log rotation is in domain.xml file. You can edit
$RAILS_ROOT/tmp/.glassfish/config/domain.xml.

Set log-roation-limit-in-bytes to 0 to disable the rotation.

-vivek.

[1]
http://rubyforge.org/tracker/index.php?func=detail&aid=24828&group_id=5450&atid=21080
[2]
http://rubyforge.org/tracker/index.php?func=detail&aid=25560&group_id=5450&atid=21080

Although not recommended, you can edit domain.xml at the glassfishgem
location inside jruby installation:
$JRUBY_HOME/lib/ruby/gems/1.8/gems/glassfish-0.9.3-universal-java/domain/domain1/config/domain.xml.
Then remove $RAILS_ROOT/tmp/.glassfish directory.

The right way to do it will be thru glassfish.yml file lets you
configure
the logging services.

-vivek.

Are you saying that the glassfish.yml solution does not currently
support
setting this logging feature? Will it with the next release of the gem?
Thanks.

Joe

Right. Currently the log rotation is not part of the glassfish.yml. We
will
try to get it into next gem release.

-vivek.

This is really helpful, thanks guys. Vivek, is there any other place
where
I can change the log file setting? I’d rather have this setting changed
some place besides a temp file.

Joe