Concern about Memory and CPU usage in Production Server

104 views
Skip to first unread message

Stone Wang

unread,
Jan 21, 2015, 3:32:09 AM1/21/15
to jac...@googlegroups.com

I plan to track code usage  by Jacoco in Production server. However I must ensure the performence won't be affected by Jacoco too much.
So,my question is: is there a way to:
1) limit memory used by Jacoco? Ex, 1G, if there is over 1G execution log, then overwrite the earliest.
2) turn off Jacoco without shut down the server. If there is, we can turn off it if CPU/Memory usage hit the alert line.
 
Anyhow, I'll do stress test. After it done, I'll post test result here
 
Thanks a lot.
 
 

Stone Wang

unread,
Jan 21, 2015, 3:56:24 AM1/21/15
to jac...@googlegroups.com
 
There is no way to turn off Jacoco when VM is running. 

Marc Hoffmann

unread,
Jan 21, 2015, 5:39:24 AM1/21/15
to jac...@googlegroups.com
Hi,

the amount of execution data collected by JaCoCo corresponds to the
number of loaded classes. JaCoCo holds a small, fixed size data
structure (basically a boolean[] array) per class. So once your
application is loaded on the production server the JaCoCo memory usage
will not increase afterwards.

JaCoCo is enabled for the entire lifecycle of the JVM, it can not be
turnded off once the classes are instrumented.

Best regards,
-marc
> --
> You received this message because you are subscribed to the Google
> Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to jacoco+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/0d942d2d-d79d-44a8-acaa-2192005d7d7b%40googlegroups.com
> [1].
> For more options, visit https://groups.google.com/d/optout [2].
>
>
> Links:
> ------
> [1]
> https://groups.google.com/d/msgid/jacoco/0d942d2d-d79d-44a8-acaa-2192005d7d7b%40googlegroups.com?utm_medium=email&utm_source=footer
> [2] https://groups.google.com/d/optout

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages