<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Performance &#8211; GLU Global</title>
	<atom:link href="https://glu.global/article-tags/performance/feed/" rel="self" type="application/rss+xml" />
	<link>https://glu.global</link>
	<description>Innovation at Speed</description>
	<lastBuildDate>Thu, 02 May 2024 07:19:58 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://glu.global/wp-content/uploads/2022/01/cropped-favicon-1-32x32.png</url>
	<title>Performance &#8211; GLU Global</title>
	<link>https://glu.global</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>GLU.Engine &#8211; Performance Related Support</title>
		<link>https://glu.global/glu-guide/glu-engine-performance-related-support/</link>
		
		<dc:creator><![CDATA[Owen Meredith]]></dc:creator>
		<pubDate>Thu, 19 Jan 2023 11:30:18 +0000</pubDate>
				<guid isPermaLink="false">https://glu.global/?post_type=ht_kb&#038;p=2772</guid>

					<description><![CDATA[Data needed for Performance related Support&#160; If you encounter a performance-related issue with a GLU.Engine while using either the recommended JVM settings from GLU or your custom-tailored JVM settings, please provide the garbage collection log, Thread Dump file, and Heapdump in the support ticket. Below are the relevant Unix stack and jmap commands for capturing [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading"><strong><span id="Data_needed_for_Performance_Related_problems" class="mw-headline">Data needed for Performance related Support&nbsp;</span></strong></h1>



<p>If you encounter a performance-related issue with a GLU.Engine while using either the recommended JVM settings from GLU or your custom-tailored JVM settings, please provide the garbage collection log, Thread Dump file, and Heapdump in the support ticket. </p>



<p></p>



<p>Below are the relevant Unix stack and jmap commands for capturing these files. Please note that you&#8217;ll need to have the full developer JDK installed to use these commands.<br><br>For centos this is the command to install the developer JDK:</p>



<p></p>



<figure class="wp-block-table"><table><tbody><tr><td><em>sudo yum install java-1.8.0-openjdk-devel</em></td></tr></tbody></table></figure>



<p>You will need the <strong><em>&#8220;PID&#8221;</em></strong> of the JVM running the <strong><em>&#8220;GE.&#8221;</em></strong> use this command to get it:</p>



<p></p>



<figure class="wp-block-table"><table><tbody><tr><td><em>ps -afe | grep java</em></td></tr></tbody></table></figure>



<p>This will return a result similar to the following: </p>



<p></p>



<figure class="wp-block-table"><table><tbody><tr><td><em>[ec2-user@ip-172-31-4-29 ~]$ ps -afe | grep java root 2725 1 3 06:21 ? 00:05:38 java -XX:+PrintGCDetails -Xloggc:gc.log -Xms1g -Xmx3g -XX:+UseG1GC -XX:MaxGCPauseMillis=250 -XX:+UseStringDeduplication -XX:G1HeapRegionSize=32 -XX:ConcGCThreads=4 -XX:G1ReservePercent=15 -XX:InitiatingHeapOccupancyPercent=30 -XX:MetaspaceSize=100M -jar ./engine/ims-1.1-SNAPSHOT.jar &#8211;spring.config.additional-location=./engine/config/appSetting.yml ec2-user 4715 3867 0 08:47 pts/0 00:00:00 grep &#8211;color=auto java</em></td></tr></tbody></table></figure>



<p>From this you can see that 2725 is the PID.</p>



<p></p>



<p></p>



<h1 class="wp-block-heading"><strong><span id="gc_-_garbage_collection" class="mw-headline">gc &#8211; garbage collection</span></strong></h1>



<p>If you are running the performance settings, you will find the <strong><em>&#8220;<b>gc.log</b>&#8220;</em></strong> file in the GLU working directory:</p>



<p></p>



<figure class="wp-block-table"><table><tbody><tr><td><em>-rwx&#8212;&#8212; 1 ec2-user ec2-user    149 Sep  9 09:57 undeploy.sh<br>-rwx&#8212;&#8212; 1 ec2-user ec2-user    144 Sep  9 09:57 stopengine.sh<br>-rwx&#8212;&#8212; 1 ec2-user ec2-user    177 Sep  9 09:57 status.sh<br>-rwx&#8212;&#8212; 1 ec2-user ec2-user    256 Sep  9 09:57 docker-compose.yml<br>-rwx&#8212;&#8212; 1 ec2-user ec2-user    304 Sep  9 09:57 deploy.sh<br>-rwx&#8212;&#8212; 1 ec2-user ec2-user    283 Sep  9 09:57 changelogginglevel.sh<br>drwxrwxr-x 3 ec2-user ec2-user     48 Sep  9 11:39 engine<br>-rwx&#8212;&#8212; 1 ec2-user ec2-user    278 Sep  9 13:36 startengineO.sh<br>-rwx&#8212;&#8212; 1 ec2-user ec2-user    456 Sep  9 13:47 startengine.sh<br>-rw-r&#8211;r&#8211; 1 root     root          5 Sep 10 06:21 pid.file<br>drwxrwxr-x 2 ec2-user ec2-user     25 Sep 10 06:21 log<br>-rw-r&#8211;r&#8211; 1 root     root     293710 Sep 10 07:51 gc.log</em></td></tr></tbody></table></figure>



<p><strong><em>&#8220;gc.log&#8221;</em></strong> is the file to attach to the Support ticket.</p>



<p></p>



<p></p>



<h1 class="wp-block-heading"><strong><span id="jstack_-_Thread_Dump" class="mw-headline">Thread Dump</span></strong></h1>



<p>Use the following command to capture a Thread Dump for the PID of your GLU.Engine:</p>



<p></p>



<figure class="wp-block-table"><table><tbody><tr><td><em>jstack -l 2725 > /home/ec2-user/imsussdthreadDump.txt</em></td></tr></tbody></table></figure>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>Replace <strong><em>&#8220;2725&#8221; </em></strong>with the actual PID of your GLU.Engine, and <strong><em>&#8220;/home/ec2-user/imsussdthreadDump.txt&#8221; </em></strong>with the desired path and filename for the output file to be attached to the support ticket.</p>
</blockquote>



<p></p>



<p></p>



<h1 class="wp-block-heading"><strong><span id="heapdump" class="mw-headline">Heapdump</span></strong></h1>



<p>Use the following command to capture a heapdump:</p>



<p></p>



<figure class="wp-block-table"><table><tbody><tr><td><em>sudo jmap -dump:live,format=b,file=/home/ec2-user/imsUSSDdump.hprof 2725</em></td></tr></tbody></table></figure>



<p>Replace <strong><em>&#8220;2725&#8221;</em></strong> with the actual PID of your GLU.Engine, and<strong><em> &#8220;/home/ec2-user/imsUSSDdump.hprof&#8221; </em></strong>with the desired path and filename for the output file to be attached to the support ticket.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
