Re: [Resin-interest] Resin JMS

2006-09-25 Thread Sam
> Date: Mon, Sep 25, 2006 at 02:11:37AM -0700
> Subject: [Resin-interest] Resin JMS
> 
> Friends,
> 
> Is there any bug on JMS implementation on Resin pro 3.0.12 ?
> I tried to use JMS MemoryQueue on Resin and it decrease my memory eventhough
> I have already emptied all my messages from queue.

There was a memory leak issue fix for this issue in 3.0.15, documented
here:
http://bugs.caucho.com/view.php?id=336

-- Sam


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin JMS

2006-09-25 Thread Mattias Jiderhamn
At 2006-09-25 15:13, chuboz wrote:
>Correct me if i'm wrong,
>You mean that eventhough we fetch messages from queue, we won't get the
>memory back?

Again, it depends on what you mean.
The JVM may use the memory for something else when the queue is 
emptied. But the OS may not give the memory to some other application 
until the JVM releases it. I don't know the conditions for the JVM to 
release memory back to the OS, but AFAIK there is no way to this 
programatically.
(Some brief info here: 
http://java.sun.com/j2se/1.5.0/docs/guide/management/jconsole.html#memory)

There is also an enhancement request on this here: 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6197676


>In my opinion, OS memory should restored to normal without exiting 
>the application.

Well. Who is to decide what is "normal"? How long will it take until 
the memory is neede by the JVM again? Having to re-allocate it from 
the OS will affect performance.



>Mattias Jiderhamn-4 wrote:
> >
> > At 2006-09-25 11:11, chuboz wrote:
> >>Is there any bug on JMS implementation on Resin pro 3.0.12 ?
> >
> > Is there any software you dare say it does not contain any bugs...?
> >
> >
> >>I tried to use JMS MemoryQueue on Resin and it decrease my memory
> >>eventhough I have already emptied all my messages from queue.
> >
> > What do you mean by "my memory"?
> > As the MemoryQueue needs more memory, the JVM will allocate more
> > memory from the OS. When the queue is emptied, the JVM will probably
> > hold on to the memory. That is, the memory may be reused by other
> > parts of your application, but it will not be returned to the OS.
> >
> >
> > ___
> > resin-interest mailing list
> > resin-interest@caucho.com
> > http://maillist.caucho.com/mailman/listinfo/resin-interest
> >
> >
>
>--
>View this message in context: 
>http://www.nabble.com/Resin-JMS-tf2330341.html#a6486182
>Sent from the Resin mailing list archive at Nabble.com.
>
>
>___
>resin-interest mailing list
>resin-interest@caucho.com
>http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin JMS

2006-09-25 Thread chuboz


Correct me if i'm wrong, 
You mean that eventhough we fetch messages from queue, we won't get the
memory back?
In my opinion, OS memory should restored to normal without exiting the
application.

Or my concept is wrong?

Please enlight me.

Thanks.




Mattias Jiderhamn-4 wrote:
> 
> At 2006-09-25 11:11, chuboz wrote:
>>Is there any bug on JMS implementation on Resin pro 3.0.12 ?
> 
> Is there any software you dare say it does not contain any bugs...?
> 
> 
>>I tried to use JMS MemoryQueue on Resin and it decrease my memory 
>>eventhough I have already emptied all my messages from queue.
> 
> What do you mean by "my memory"?
> As the MemoryQueue needs more memory, the JVM will allocate more 
> memory from the OS. When the queue is emptied, the JVM will probably 
> hold on to the memory. That is, the memory may be reused by other 
> parts of your application, but it will not be returned to the OS. 
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Resin-JMS-tf2330341.html#a6486182
Sent from the Resin mailing list archive at Nabble.com.


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin JMS

2006-09-25 Thread Mattias Jiderhamn
At 2006-09-25 11:11, chuboz wrote:
>Is there any bug on JMS implementation on Resin pro 3.0.12 ?

Is there any software you dare say it does not contain any bugs...?


>I tried to use JMS MemoryQueue on Resin and it decrease my memory 
>eventhough I have already emptied all my messages from queue.

What do you mean by "my memory"?
As the MemoryQueue needs more memory, the JVM will allocate more 
memory from the OS. When the queue is emptied, the JVM will probably 
hold on to the memory. That is, the memory may be reused by other 
parts of your application, but it will not be returned to the OS. 


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Resin JMS

2006-09-25 Thread chuboz

Friends,

Is there any bug on JMS implementation on Resin pro 3.0.12 ?
I tried to use JMS MemoryQueue on Resin and it decrease my memory eventhough
I have already emptied all my messages from queue.

For bulk transactions, I used ObjectMessage and during transactions, I never
close session or connection.


Any help is appreciated.

Thanks. 

-- 
View this message in context: 
http://www.nabble.com/Resin-JMS-tf2330341.html#a6482806
Sent from the Resin mailing list archive at Nabble.com.


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest