Regression: felix log growing

Description

Felix logs are growing and the setting appears to be set to DEBUG.

Also, the felix.log.level=error property seems to be ignored.

Environment

Apache Tomcat/9.0.17
Windows Server 2016 (10.0) 64bit

Attachments

1

relates to

Activity

Patrick Quinn 
25 June 2019 at 14:36

Hi . This is a chance, but we’ll have to address that in the July sprint, as we can’t hold up the current RC any longer. Stay tuned.

Brett C 
21 June 2019 at 17:10

Thank you for your wizardry, !

 

Is there a chance that this could be backported to the release series?

 

Michael Offner 
21 June 2019 at 16:36

#2 is also not possible because that class would the be loaded by the core and the loader cannot cannot have a reference to the core, as long any class of the core is referenced somewhere, the core cannot be flushed and replaced when necessary. that means the core must also remove that reference when unloaded. i think the better solutions is #3, that way we simply update the class on bytecode level and the class and classloader remains.

Michael Offner 
21 June 2019 at 15:28

actually #1 is already in place in the loader and the core

Michael Offner 
21 June 2019 at 15:24

yes we could do that, but only for upcoming Lucee versions. Problem is Lucee does not (yet) provide the loader version to the REST service.

I personally don’t like that at all, for me is important that an update of the loader is optional and never required and a message like this would suggest otherwise.

if you think this is an important fix for everybody to have, we should invest that time to have a patch in the core for this, i see 3 approaches to “solve” this in the core

  1. the controller should check the size of the felix.log and if necessary rotate the file and delete if necessary older versions. so we do not reduce the amount of entries, but we clean up if necessary, as we do for all lucee logs.

  2. we will check if we can modify the logger after loading felix from the core, i actually checked this when i was implementing the fix and could not find anything, but i will dig a little deeper

  3. with help of java bytecode rewriting we rewrite the class in question dynamically on the fly, actually that would be the easiest solution and sounds like fun to do

 

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 14 April 2019 at 15:51
Updated last week
Resolved 25 April 2019 at 14:19