Monitoring the UI's mem usage

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Monitoring the UI's mem usage

Mark Miller
This shouldn't normally be something that you need to do with jruby I'd
think - but Avram asked about this on the call back when there where ui
running out of memory issues.

Since we require java 6, this is actually really easy.

Java itself comes with jconsole. It should be on your path. You just
start it, and it lists running java processes that you can connect to.
Choose the one with jruby-complete-1.5.3.jar in the name for the UI. The
back end is the one with start.jar in the name.

I usually prefer visualvm over jconsole (kind of a supe'd up version of
jconsole with a mem/cpu profiler). Its free and simple to use at
https://visualvm.dev.java.net/.

That makes it very easy to see how the UI and back end are using memory,
their garbage collection activity, cpu usage, etc.

I often run one on my laptop screen as I test LWE.

- Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Monitoring the UI's mem usage

Mark Miller-3
Gotto love a wrong email address autocomplete.

On 12/5/10 3:26 PM, Mark Miller wrote:

> This shouldn't normally be something that you need to do with jruby I'd
> think - but Avram asked about this on the call back when there where ui
> running out of memory issues.
>
> Since we require java 6, this is actually really easy.
>
> Java itself comes with jconsole. It should be on your path. You just
> start it, and it lists running java processes that you can connect to.
> Choose the one with jruby-complete-1.5.3.jar in the name for the UI. The
> back end is the one with start.jar in the name.
>
> I usually prefer visualvm over jconsole (kind of a supe'd up version of
> jconsole with a mem/cpu profiler). Its free and simple to use at
> https://visualvm.dev.java.net/.
>
> That makes it very easy to see how the UI and back end are using memory,
> their garbage collection activity, cpu usage, etc.
>
> I often run one on my laptop screen as I test LWE.
>
> - Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]