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.
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.
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.
To unsubscribe from this list, please visit:
There are some known issues with logging,  and . These issues are
being worked on and will be available in the next gem version (in couple
weeks). Apparently  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
turn it off:
The setting for the log rotation is in domain.xml file. You can edit
Set log-roation-limit-in-bytes to 0 to disable the rotation.
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.
Are you saying that the glassfish.yml solution does not currently
setting this logging feature? Will it with the next release of the gem?
Right. Currently the log rotation is not part of the glassfish.yml. We
try to get it into next gem release.
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.