Forum: JRuby Glassfish Log turnover problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
22785d4dbf585723bf60458ece0170e1?d=identicon&s=25 Joseph Athman (Guest)
on 2009-05-02 22:22
(Received via mailing list)
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/br...
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
22785d4dbf585723bf60458ece0170e1?d=identicon&s=25 Joseph Athman (Guest)
on 2009-05-04 15:57
(Received via mailing list)
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
08264fc914cfb45adfea6c2f36f70b21?d=identicon&s=25 Jacob Kessler (Guest)
on 2009-05-04 18:58
(Received via mailing list)
Bugs against Glassfish Gem should be filed at
http://rubyforge.org/tracker/?atid=21080&group_id=...

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

Joseph Athman 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
C525435d460373e31aed692ceb499b40?d=identicon&s=25 Vivek Pandey (Guest)
on 2009-05-04 19: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
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.

<log-service file="${jruby.log.location}"
log-rotation-limit-in-bytes="2000000">

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

-vivek.

[1]
http://rubyforge.org/tracker/index.php?func=detail...
[2]
http://rubyforge.org/tracker/index.php?func=detail...
22785d4dbf585723bf60458ece0170e1?d=identicon&s=25 Joseph Athman (Guest)
on 2009-05-04 21:09
(Received via mailing list)
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
C525435d460373e31aed692ceb499b40?d=identicon&s=25 Vivek Pandey (Guest)
on 2009-05-04 23:05
(Received via mailing list)
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.
22785d4dbf585723bf60458ece0170e1?d=identicon&s=25 Joseph Athman (Guest)
on 2009-05-04 23:15
(Received via mailing list)
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
C525435d460373e31aed692ceb499b40?d=identicon&s=25 Vivek Pandey (Guest)
on 2009-05-06 00:42
(Received via mailing list)
Right. Currently the log rotation is not part of the glassfish.yml. We
will
try to get it into next gem release.

-vivek.
This topic is locked and can not be replied to.