Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 17065 invoked from network); 1 Jul 2004 00:22:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jul 2004 00:22:12 -0000 Received: (qmail 63902 invoked by uid 500); 1 Jul 2004 00:22:28 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 63831 invoked by uid 500); 1 Jul 2004 00:22:27 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 63797 invoked by uid 99); 1 Jul 2004 00:22:25 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_30_40,HTML_MESSAGE X-Spam-Check-By: apache.org Received: from [206.190.39.90] (HELO web52208.mail.yahoo.com) (206.190.39.90) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 30 Jun 2004 17:22:22 -0700 Message-ID: <20040701002152.10831.qmail@web52208.mail.yahoo.com> Received: from [198.175.229.3] by web52208.mail.yahoo.com via HTTP; Wed, 30 Jun 2004 17:21:52 PDT Date: Wed, 30 Jun 2004 17:21:52 -0700 (PDT) From: Remedy QA Subject: jmeter memory consumption To: JMeter User List MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2060637328-1088641312=:9654" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-2060637328-1088641312=:9654 Content-Type: text/plain; charset=us-ascii It seems Jmeter is a memory hogger. If given more memory, it will keep consuming. I am using JMeter nightly build of June 12. During my test run of approximately 50 minutes, with 250 virtual users on one GUI Jmeter client, it managed to consume about 1 GB of real memory. As the test continued, the memory just kept diminishing. The garbage collecting (minor collecting) happened about every 20 to 60 seconds. The CPU spikes happen when there are GCs. I also ran the same test on a machine with only 1 GB of RAM. When the test was over, real memory was at about 32mb. I tried with non-GUI mode but several threads hung and never was able to finish. So it seems that if I use a machine with more memory and give it a bigger heap, it just consumes as much as it can. I don't think 250 virtual users for the machine type I use is too much load. There must be something I am missing. Any help appreciated. I ran a test with the following configuration: Single JMeter Client on Windows 2000 Server, 2 GB RAM, single 2.8 Ghz Pentium 4 CPU. JDK 1.4.2_04 JMeter JVM settings: set HEAP=-Xms1280m -Xmx1280m set NEW=-XX:NewSize=512m -XX:MaxNewSize=512m set DEBUG=-verbose:gc -XX:-PrintTenuringDistribution -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime All other JVM settings are the defaults that came with jmeter.bat. JMeter output set to CSV, jmeter and jorphan logging set to warning. Jmeter script: Test Plan ThreadGroup - 250 virtual users, ramping up every 5 seconds. Loop once. Aggregate Listener Simple Controller 8 HTTP Requests in here 3 Aggregate Listeners in here Runtime Controller - 45 minutes total for all users. 33 HTTP Requests in here 2 Aggregate Listeners in here Simple Controller 2 HTTP Requests in here. --------------------------------- Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! --0-2060637328-1088641312=:9654--