users@jersey.java.net

Re: [Jersey] memory leak with CDI ?

From: John Ament <my.reprive_at_gmail.com>
Date: Sat, 24 Jul 2010 07:34:52 -0400

Could you post the contents of hello service?

On Jul 23, 2010 11:59 PM, "Moises Lejter" <moilejter_at_gmail.com> wrote:

To get the simple stuff out of the way - until a GC actually runs, you
should see the amount of memory in use increase - your JAX-RS resources
(explicitly, or in general by default) are created on each call, and only
used for that one call. So you would expect memory use to increase, until
GC cleans up.

You could annotate your resource to be a singleton, instead, to see if
memory use remains stable ...

Moises


On Jul 23, 2010, at 10:45 PM, satish gopalakrishnan wrote:

> Hi,
> I am using glassfish v 3.01. I ...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
For additional commands, e-mail: users-help_at_jersey.dev.java.net