Forum: JRuby Glassfish Log turnover problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Joseph A. (Guest)
on 2009-05-03 00:22
(Received via mailing list)
I'm working on getting an application working with the glassfish gem but
having an issue with how it handles log files.  It looks like glassfish
rolling over my log files at the 2MB but it will not create a new file
it eventually locks up and will no longer serve requests (maybe because
logging buffer is full??).  At this point the only solution is a restart
the server.  There is a post
mentions the same problem.  Does anyone know what this is?  I would
also like to know how to configure this log file rolling behavior
I've never seen a setting for this.

Joseph A. (Guest)
on 2009-05-04 17:57
(Received via mailing list)
Does anyone at least know where to file bug reports for the GlassFish
I can't seem to find where they have them.  We have this issue and the
of GlassFish running all the Rails initializers twice that are
our deployment with GlassFish that I would like to file bugs for.

Jacob K. (Guest)
on 2009-05-04 20:58
(Received via mailing list)
Bugs against Glassfish Gem should be filed at

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:
Vivek P. (Guest)
on 2009-05-04 21:43
(Received via mailing list)
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
weeks). Apparently [1] is the cause of what you are experiencing related
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

<log-service file="${jruby.log.location}"

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


Joseph A. (Guest)
on 2009-05-04 23:09
(Received via mailing list)
This is really helpful, thanks guys.  Vivek, is there any other place
I can change the log file setting?  I'd rather have this setting changed
some place besides a temp file.

Vivek P. (Guest)
on 2009-05-05 01:05
(Received via mailing list)
Although not recommended, you can edit domain.xml at the glassfishgem
location inside jruby installation:
Then remove $RAILS_ROOT/tmp/.glassfish directory.

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

Joseph A. (Guest)
on 2009-05-05 01:15
(Received via mailing list)
Are you saying that the glassfish.yml solution does not currently
setting this logging feature?  Will it with the next release of the gem?

Vivek P. (Guest)
on 2009-05-06 02:42
(Received via mailing list)
Right. Currently the log rotation is not part of the glassfish.yml. We
try to get it into next gem release.

This topic is locked and can not be replied to.