Lucee 5.3.9.166. Memory heap is always growing unt...
# lucee
r
Lucee 5.3.9.166. Memory heap is always growing until achieve maximum. See FR screen

https://dl.dropboxusercontent.com/s/6sgtznysrdn9t01/chrome_KsjWLWFFQt.png

I run it under Commanbox:
Copy code
{
  "jvm": {
    "args": "-javaagent:C:\\FusionReactor\\instance\\evolve\\fusionreactor.jar=name=evolve,address=8098",
    "heapSize": "3000"
  },
  "profile": "production",
  "trayEnable": "false",
  "web": {
    "AJP": {
      "enable": "true",
      "port": "8901"
    },
    "host": "127.0.0.1"
  }
}
ACF 2016 looks different

https://dl.dropboxusercontent.com/s/4c8moegs2gjwt08/kaIe9EPQzD.png

Should I use some special JVM arguments?
z
this is the first time you've tried it with lucee, i.e. is this a regression after updating to a newer version?
it's not a question of jvm settings, it's a question of what is in being retained on the heap
are you using onSessionEnd() ?
r
I believe it started after updating to 5.3.9.167 several days ago. Now I downgraded to 5.3.9, but it hasn't helped. I reproduced after restarting...
We don't use onSessionEnd
z
which version where you on before 5.3.9.166 ?
r
I don't remember. Is there any update log in Lucee or commandbox folder?
z
so you are just always running the latest stable?
r
Yes. But several days ago I updated to .167 snapshot because of you fixed one important bug.
z
the only change in 5.3.9.167 is a one liner, which i seriously doubt is causing this problem https://github.com/lucee/Lucee/commit/beb594a7659fb9248fb324381414e7e3dbdb92e5
anyway, the important question remains, what is in your growing heap?
👍 1
r
I'll try to use memory profiler to find out it, that's really interesting. But it's usual behavior of our system, as you can see on ACF screenshot, but usually GC works well and clear heap. I don't know why it stopped
b
@romanstr FYI, you don't need to manually add the JVM args for Fusionreactor. Just install the FR module and it will do all that for you, including configuring your license key and more!
Copy code
install commandbox-fusionreactor
As far as your memory issue, install the heap dump plugin into Lucee (you have to show extensions in beta version I think for it to show up in the admin). Take a heap dump while memory is full, zip it up on Google drive and share it via DM and I'll look at it
If it just started happening and all you changed was a Lucee version, it could be a Lucee bug but you'll never figure it out without just analyzing the heap dump
r
I found the problem in heap dump. It was a lot of long term (5 hours) sessions of my multiple scheduled tasks. I believe update wasn't reason of this problem. Thank you guys! @zackster @bdw429s
👍 1
z
phew
r
btw, is it ok that I don't see number of created sessions in FustionReactor, but I see destroyed sessions?
for ACF it works more expected
z
always up for improvements, but you'll need to elaborate / paint a picture
b
I would ask that question in #fusion-reactor to the FR devs.