[RTFACT-4464] Memory leak Created: 11/Oct/11  Updated: 20/Dec/11  Resolved: 20/Dec/11

Status: Resolved
Project: Artifactory Binary Repository
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Marcin Kuthan Assignee: Yoav Landman
Resolution: Fixed Votes: 0
Labels: None

Attachments: JPEG File Heap Usage After GC.jpg    

 Description   

I observed memory leak in my Artifactory installation. Once a month OutOfMemory error is thrown The heap usage after GC steadily grows from ~200MB to ~600MB.

My environment:
Linux 2.6.18-194.17.4.el5, x86_64
Artifactory 2.3.2 (built in database)
Apache Tomcat 5.5.28
Java 1.6.0_16

My configuration:
-server -Xms1024m -Xmx1024m -Xss256k -XX:PermSize=192m -XX:MaxPermSize=192m -XX:NewSize=384m -XX:MaxNewSize=384m -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:$CATALINA_HOME/logs/gc.log -XX:-HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$CATALINA_HOME/logs -Dartifactory.home=$ARTIFACTORY_HOME

The memory tuning seems to fulfill the load. At the beginning (first two weeks) full GC is executed only during nightly jobs (backup, indexing).

I turned on HeapDumpOnOutOfMemoryError JVM option, but we will have to wait a month to see the results. Let me know, if you need more details. I will provide as much information as I can.



 Comments   
Comment by Marcin Kuthan [ 09/Dec/11 ]

I've installed the latest version (2.4.2). Let's wait a week for the GC report.

Comment by Marcin Kuthan [ 20/Dec/11 ]

Please close the issue. Version 2.4.2 works perfectly, memory usage is stable.

Generated at Wed Apr 08 09:16:23 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.