[ 
https://issues.apache.org/jira/browse/QPID-5786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14010969#comment-14010969
 ] 

Alex Rudyy commented on QPID-5786:
----------------------------------

Hi Bobby,

I had been trying to reproduce the issue running bunny example as you had 
suggested on qpid broker with 30M heap for couple of hours. I could not see any 
sign of memory leaks. If you are running the Qpid broker using default scripts 
with default settings, a heap dump should be written on running into OOM error. 
With Oracle JVM a heap dump file name would be "java_pid<pid id>.hprof" and it 
should be stored in the directory where broker is run. If you share with me a 
heap dump I will try to identify the reason why the broker run out of memory in 
your "complex AMQP environment".

Regarding the increase of the memory use for the simple hello bunny example, 
the JVM invokes full GC on certain conditions (depending from the garbage 
collector in use). Until full GC the JVM heap might grow in size until the 
maximum heap limit is reached. The condition of invocation full GC depends from 
garbage collector implementation.  For more details, please, have a look at GC 
tutorial 
[here|http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/gc01/index.html].

> Memory leak in qpid-java-broker-0.26.tar.gz
> -------------------------------------------
>
>                 Key: QPID-5786
>                 URL: https://issues.apache.org/jira/browse/QPID-5786
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.26
>         Environment: Linux Mint 15 (64 Bit) - any Linux version should do
> Java // OpenJDK Runtime Environment (IcedTea 2.4.4)
>   also tested with Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Ruby 1.8.7
> Ruby Bunny Gem 1.2.2
>            Reporter: Bobby Flitter
>         Attachments: amqp_bunny_qpid.pcap
>
>
> When using the hello bunny example program from Ruby together with Apache 
> qpid server the memory consumption of qpid seems to grow continuously.
> Steps to reproduce the problem in Linux:
> wget 
> http://ftp-stud.hs-esslingen.de/pub/Mirrors/ftp.apache.org/dist/qpid/0.26/qpid-java-broker-0.26.tar.gz
> tar xzvf qpid-java-broker-0.26.tar.gz
> cd qpid-broker-0.26/bin/
> ./qpid-server
> - in a new terminal
> - meanwhile bunny 1.2.2. is available
> - install ruby amqp bunny
> sudo gem install bunny
> - download hello bunny example
> wget http://pastebin.com/raw.php?i=f6MesMCZ -O hello_bunny.rb
> while true; do ruby hello_bunny.rb ; done
> - in another terminal:
> while true; do grep "^VmRSS" /proc/$(pgrep -f qpid)/status ; sleep 1;done
> - memory consumption of java qpid is growing continuously until 
> OutOfMemoryError ends the server
> Unhandled Exception java.lang.OutOfMemoryError: Java heap space in Thread 
> Thread-1



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to