PageSourcePool.clearUnused errors (error not info)...
# lucee
a
PageSourcePool.clearUnused errors (error not info) Hey - have read in the past about these - java.lang.NullPointerException at lucee.runtime.PageSourcePool.clearUnused(PageSourcePool.java:165) and the response was.. reasonably - these are info level application logging, so adjust log levels accordingly. For a month or so, on 5.3.10.97, windows plus fully updated Tomcat and JVM 11.0.17 my app log kicks out these exactly every minute -
"ERROR","Thread-220217","01/12/2023","15:56:39","controler","java.lang.NullPointerException;java.lang.NullPointerException
at lucee.runtime.PageSourcePool.clearUnused(PageSourcePool.java:165)
at lucee.runtime.MappingImpl.clearUnused(MappingImpl.java:300)
at lucee.runtime.functions.system.PagePoolClear.clear(PagePoolClear.java:93)
at lucee.runtime.functions.system.PagePoolClear.clear(PagePoolClear.java:85)
at lucee.runtime.functions.system.PagePoolClear.clear(PagePoolClear.java:65)
at lucee.runtime.engine.Controler.doClearPagePools(Controler.java:470)
at lucee.runtime.engine.Controler.control(Controler.java:375)
at lucee.runtime.engine.Controler.control(Controler.java:249)
at lucee.runtime.engine.Controler.access$000(Controler.java:58)
at lucee.runtime.engine.Controler$ControlerThread.run(Controler.java:113)
I have 4 identical nodes, 3 get most of the traffic each and the 4th a small level of traffic. Only the 4th node get these errors. every 2 days I have to restart tomcat so they don't clog the logs - as it doesn't really make sense to set the log level above error. Not the end of the world, but just mentioning in case anyone else is seeing this and /or has ideas on stopping. Thanks!
z
I'll file a bug in jira, it needs a null check
this error is surrounded by other
New pagePool size...
entries?
my guess is either clearing the page pool is taking so long, the processes are overlapping, or there are somehow mulitple controller threads running somehow, so when it gets around to trying to clear the entry, it's no longer there .. hence the NPE https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/PageSourcePool.java#L165
a
Much appreciated!! I am on the road, but when I can get connected I will increase app log level to info to see if
New pagePool size
surrounds these NPE entries. Should’ve done that up front, mb.