Lucee Memory Consumption

575 views
Skip to first unread message

Scott Conklin

unread,
Jun 8, 2016, 12:30:23 PM6/8/16
to Lucee
Not sure if this means anything, but should't the memory usage under windows be limited to what was allocated in the max memory pool? 
Or does this not really mean anything? 


Scott

Scott Conklin

unread,
Jun 10, 2016, 12:06:25 PM6/10/16
to Lucee
anyone?

Igal @ Lucee.org

unread,
Jun 10, 2016, 12:11:41 PM6/10/16
to lu...@googlegroups.com

It should. 

Can you expand the list?  Looks like there's an arrow there that allows you to get more details.


Igal Sapir
Lucee Core Developer
Lucee.org

--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/4dabe5a1-f045-41ca-a805-cc475d69884d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Conklin

unread,
Jun 10, 2016, 12:13:24 PM6/10/16
to Lucee

Igal @ Lucee.org

unread,
Jun 10, 2016, 12:15:46 PM6/10/16
to lu...@googlegroups.com

Is there an option to show processes from all users?  Is it checked?


Igal Sapir
Lucee Core Developer
Lucee.org

On 6/10/2016 9:13 AM, Scott Conklin wrote:
--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

Igal @ Lucee.org

unread,
Jun 10, 2016, 12:16:40 PM6/10/16
to lu...@googlegroups.com

And...  You restarted the service since you've set the Max Memory setting, right?


Igal Sapir
Lucee Core Developer
Lucee.org

On 6/10/2016 9:13 AM, Scott Conklin wrote:

Scott Conklin

unread,
Jun 10, 2016, 12:23:25 PM6/10/16
to Lucee

I am not seeing exactly that option,, 
there is a users tab:


YES. Most definitely been restarted since the max pool setting was set to 4096.

I also have this resource performance  monitor view... doesn't this look considerably higher than it should be? 

memory is constantly at 98% now, but the websites are performing well...


 

Scott Conklin

unread,
Jun 10, 2016, 12:28:35 PM6/10/16
to Lucee
maybe 4096 memory for Tomcat/Lucee is too much for a machine with 8GB of memory? 

I asked MIke Brunt (cfwhisperer)  about the java args and he confirmed that mix max of 4096 is a good starting point for a machine with that much memory..
(sites are performing ok, but navigating the machine via RDP is painfully slow.  )

Igal @ Lucee.org

unread,
Jun 10, 2016, 12:32:57 PM6/10/16
to lu...@googlegroups.com

definitely not too much.

what do you get if you run this in a cfm script?

<cfscript>

    RT = createObject("java", "java.lang.Runtime").getRuntime();

    dump(var: RT.maxMemory() / 1024 / 1024, label: "Max Memory");
</cfscript>


Igal Sapir
Lucee Core Developer
Lucee.org

--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

Scott Conklin

unread,
Jun 10, 2016, 12:35:27 PM6/10/16
to Lucee
Max Memory
number4056.5

Sean Daniels

unread,
Jun 10, 2016, 12:36:28 PM6/10/16
to lu...@googlegroups.com
Isn't the PermGen allocated in addition to the Heap? Maybe your ~4,900 is the heap plus 900M or so of PermGen? Do you have a lot of templates?

Sean Daniels

unread,
Jun 10, 2016, 12:38:41 PM6/10/16
to lu...@googlegroups.com
What version of Lucee? On the main page of the admin do you see the Heap / Non-Heap metrics (upper right hand corner - can't remember which version that got added in though)?

> On Jun 10, 2016, at 12:35 PM, Scott Conklin <scon...@dynaprice.net> wrote:
>
> Max Memory
> number 4056.5
>
>
> --
> Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
> ---
> You received this message because you are subscribed to the Google Groups "Lucee" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
> To post to this group, send email to lu...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/6d102449-fa43-4835-b5a3-54da01f7531b%40googlegroups.com.

Igal @ Lucee.org

unread,
Jun 10, 2016, 12:39:13 PM6/10/16
to lu...@googlegroups.com

So that's consistent with your Max Memory setting of 4GB.

I don't know why Windows (what version is that?) shows you a different value.

Also, what version of Java?  And what are your JVM args?  It's possible that this is due to other memory like Sean Daniels suggested, though with normal settings it is not very likely. 


Igal Sapir
Lucee Core Developer
Lucee.org

Scott Conklin

unread,
Jun 10, 2016, 12:48:45 PM6/10/16
to Lucee
@Sean

1) It is version 4.5.2.018. 

2) Do cfincludes of precompiled files count? 
We have a application builder that writes 30K+ files to a file structure that the front end then includes to "assemble" complex input masks for users to enter descriptive data about product equipment
each webroot (about 50) only contains about 70 or 80 templates that one would navigate or submit to in browser.

Scott Conklin

unread,
Jun 10, 2016, 12:52:59 PM6/10/16
to Lucee
@igal 
Also, what version of Java?  And what are your JVM args?  It's possible that this is due to other memory like Sean Daniels suggested, though with normal settings it is not very likely.  

1) Java  1.8.0_77 (Oracle Corporation) 64bit 
2) Windows Server 2012 R2 (6.3) 64bit  8 GBs of RAM
3)  JVM args:

-Dsun.net.client.defaultConnectTimeout=10000 
-Dsun.net.client.defaultReadTimeout=600000
-Dcatalina.home=E:\lucee\tomcat
-Dcatalina.base=E:\lucee\tomcat

Max and Min memory pool is 4096


was wondering if i should be using the JAVA 8 G1GC garbage collector... (but I am not having any website performance issues!)



On Wednesday, June 8, 2016 at 11:30:23 AM UTC-5, Scott Conklin wrote:

Igal @ Lucee.org

unread,
Jun 10, 2016, 1:03:24 PM6/10/16
to lu...@googlegroups.com

Well, in Java 1.8 there's no PermGen space anymore.  It was replaced by the Metaspace that uses native memory, and uses more of the available memory of your system when needed.  It is not limited unless you specify a JVM argument to do so:  -XX:MaxMetaspaceSize=size, e.g.

        -XX:MaxMetaspaceSize=512m

will set the max to 512 MB.  Since it currently utilizes about 2GB I wouldn't set it too low.  If your heap space of 4GB is not fully utilized then you can reclaim some of that to offset the memory footprint, e.g. set the max heap size to 3.5 GB instead of 4, for a total of 4GB.  See https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html for more.

So it seems to me that Sean is right (this is non-Heap memory) though the details are a bit different.

p.s.  I wouldn't change the Garbage Collector if I were you, unless you really understand the implications.

Igal Sapir
Lucee Core Developer
Lucee.org

--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

Scott Conklin

unread,
Jun 10, 2016, 1:10:43 PM6/10/16
to Lucee
@Igal 

>> Since it currently utilizes about 2GB I wouldn't set it too low. 
How can you tell this? 

Are you saying that I should not bother with  using  -XX:MaxMetaspaceSize=size and just reduce the heap a bit to give the non-heap a bit more room? 

Can one tell this by looking at the %s allocated to Heap and Non-Heap in the Lucee Admin graph at right? 

Thanks.. 


Igal @ Lucee.org

unread,
Jun 10, 2016, 1:13:29 PM6/10/16
to lu...@googlegroups.com

IIRC you showed 6GB utilization and the Heap is only 4GB.  If it's less than 6GB then just calculate the what Windows shows you and deduct 4GB.


Igal Sapir
Lucee Core Developer
Lucee.org

--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

Scott Conklin

unread,
Jun 10, 2016, 1:17:55 PM6/10/16
to Lucee
@Igal.. 
Thanks. I understand now.
one last question:
If my heap is currently at 54% (been that way for a month now), Can I assume that for my application(s) the heap is too big? 
and what is a good % to maintain? 

Igal @ Lucee.org

unread,
Jun 10, 2016, 1:20:50 PM6/10/16
to lu...@googlegroups.com

I wouldn't say "too big".  I actually like to have about 50% of available heap space.  If you are short on memory then you can reduce it, but I'd leave at least 25% - 30% available space.


Igal Sapir
Lucee Core Developer
Lucee.org

--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages