<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alejandro Longas on Medium]]></title>
        <description><![CDATA[Stories by Alejandro Longas on Medium]]></description>
        <link>https://medium.com/@alejandro.longas?source=rss-3413fdadc029------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DJIsv7ROBKXNXhfm</url>
            <title>Stories by Alejandro Longas on Medium</title>
            <link>https://medium.com/@alejandro.longas?source=rss-3413fdadc029------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 00:22:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alejandro.longas/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Loom Project: The Revolution of JMeter]]></title>
            <link>https://medium.com/globant/loom-project-the-revolution-of-jmeter-d321486517a8?source=rss-3413fdadc029------2</link>
            <guid isPermaLink="false">https://medium.com/p/d321486517a8</guid>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[looms]]></category>
            <category><![CDATA[quality-engineering]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[jmeter]]></category>
            <dc:creator><![CDATA[Alejandro Longas]]></dc:creator>
            <pubDate>Fri, 05 Jan 2024 12:01:30 GMT</pubDate>
            <atom:updated>2024-01-05T12:01:30.163Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x9cD3XnZVUNY0mszIz_0qw.jpeg" /><figcaption>Santa Fé de Antioquia, Antioquia, Colombia</figcaption></figure><p>I’ve been a Performance Tester for 14 years, witnessing the transformation of what we know as the Internet: from Monolithic to Microservices, from On-site to Cloud, from Ajax to Rest, and all the rapid evolution that JS has undergone. I’ve been actively working with <a href="https://jmeter.apache.org/">JMeter</a> and feel it’s a wonderful tool that, unfortunately, people don’t understand and are unaware of the limitations a 64-bit operating system inherently brings.</p><p>Recently, I’ve had the opportunity to design and execute large-scale tests for applications handling massive events.</p><p>Here’s what I consider the greatest achievement of my career up to this point:</p><p>7,000,000 concurrent users reaching peaks of up to 400,000 req/sec:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3JM6SIgowJbOn-5u" /><figcaption>Active Threads over time</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ytJDSS7WUX_dQqhn" /><figcaption>Request per Second over time</figcaption></figure><p>Since the release of Java in 1997, it has provided an easy way to work with multi-threaded applications. However, that scheme is limited to operating system threads, so in highly threaded applications, it may not work, demanding powerful CPUs with Hyperthreading capabilities and consuming extra resources like RAM.</p><p><a href="https://openjdk.org/projects/loom/">Project Loom </a>saw the light in 2017. It is an initiative to provide lightweight threads not linked to the operating system but managed by the JVM. The first official release occurred in September 2023 with Java 21, and for me, it is the new frontier of Java as a programming language.</p><p>In a casual conversation, my coworker <a href="https://www.linkedin.com/in/jwcastillo/">Wen</a> shared with me an <a href="https://medium.com/@nirmalmewada/unveiling-the-secret-achieving-50k-concurrent-user-load-using-jmeter-with-2-5g-ram-only-51f892b233ce">article</a>, where the author explains simply how the current thread scheme of JMeter works and how Loom could impact resource utilization.</p><p>This article captivated me immediately, but it also raised many doubts for me, given that the response from the <a href="https://www.nginx.com/">NGINX</a> server was empty. While I believed that Virtual Threads would have a significant impact on resources, the results suggest a miraculous effect that didn’t seem plausible to me. Hence, I decided to go on my own and analyze the resource usage of the machine we regularly use.</p><p>Our script emulates the usage of the different devices, is around 240 requests, and includes some <a href="https://jmeter.apache.org/usermanual/component_reference.html#JSR223_Sampler">JSR223</a> samplers with Groovy code.</p><h3><strong>First Exercise:</strong></h3><p>With that theoretical baseline hint, I decided to start my laboratory, setting the scene in the environment where I usually work, which has no resource constraints and where we inject around 16k req/sec as a baseline in our daily operations.</p><h4><strong>Thread Group vs Virtual Thread Group</strong></h4><p>Comparing the traditional Thread Group with the one that utilizes LOOM, compiled by Normal Mewada and shared on their <a href="https://github.com/nirmal-mewada/jmeter-loom">GIT</a>, I find that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*VV2iikoqCR3msP_kRL6XTQ.png" /><figcaption>Thread Group vs Virtual Thread Group</figcaption></figure><p>The results were quite significant because, in all indicators, the implementation with Virtual Threads outperformed the traditional one. Something that surprised me a lot was that upon finishing the tests, the Virtual Users (VUs) that were running ended immediately. In contrast, traditionally, it took a significant amount of time for them to finish, as can be seen in the hardware metrics presented as Traditional TG.</p><ul><li>CPU:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/0*g6HVj9FH_SkR1FLk" /><figcaption>CPU over time</figcaption></figure><p>The CPU usage appears lower, but it’s not significant.</p><ul><li>RAM:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/0*eBBQTkLSEMH4BcZF" /><figcaption>RAM over time</figcaption></figure><p>The RAM usage decreased by 3% at its peak, which translates to a couple of free gigs; a key factor for downsizing the machine we use.</p><ul><li>Loaded Classes:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/0*5BvYkWt8oFQBF1Yj" /><figcaption>Classes over time</figcaption></figure><p>This item presents a reduction of 4447 classes that were not loaded in the JVM.</p><ul><li>Threads:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/0*HxKBJPVF-dJn0p8w" /><figcaption>Threads over time</figcaption></figure><p>In this section, the difference had a very high impact; to run 30K VUs, only 95 traditional threads were used, much easier to manage for the JVM, and this is noticeable even when VisualVM renders the information.</p><h3><strong>Second Exercise:</strong></h3><p>At this point, I was excited because the results did show an improvement. For this reason, I decided to intervene in the Ultimate Thread Group and modify line 97 of :</p><pre>AbstractSimpleThreadGroup.java</pre><p>That generated threads would be of the virtual type.</p><p>You can find the generated code and the jar that implements it in the following repository <a href="https://github.com/ahlongas07/jmeterultimatedtgloom/">GIT</a>.</p><h4><strong>Ultimate Thread Group vs Loom Ultimate Virtual Thread Group</strong></h4><p>With the hint from before, I generated a new script and conducted two runs under the same aforementioned conditions, and found:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*L-ylgc6t5zkXbQO76CUxog.png" /><figcaption>Ultimate Thread Group vs Loom Ultimate Virtual Thread Group</figcaption></figure><p>I was surprised by the result as there were 24% more hits during the same time, quite a revolution!</p><p>Reviewing the execution behavior in our APM, we see that:</p><h4><strong>For Ultimate Thread Group:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*fuSbdM6tUXp4Tduz" /><figcaption>Throughput from New Relic</figcaption></figure><h4><strong>For Loom Ultimate Virtual Thread Group:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*GQ0uCzltnbaBuza2" /><figcaption>Throughput from New Relic</figcaption></figure><p>Undoubtedly, it’s noticeable that the injector running the component with virtual threads made less effort and maintained a smoother load injection.</p><p>Let’s now look at the hardware behavior:</p><ul><li>CPU:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0tpMK1W1oeDbZTex" /><figcaption>CPU over time</figcaption></figure><p>Smooth CPU usage without spikes.</p><ul><li>RAM:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-moahxYY8u9Q2csC" /><figcaption>RAM over time</figcaption></figure><p>Almost the same usage of memory RAM.</p><ul><li>Loaded Classes:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H9_1QOCQ_bi0IR69" /><figcaption>Classes over time</figcaption></figure><p>The loaded classes are almost the same as traditional.</p><ul><li>Threads:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cVEG0RFDf5KmuoQX" /><figcaption>Classes over time</figcaption></figure><p>This is the real magic of Loom, we went from 30K operating system threads to only 80.</p><p>In conclusion, this initial release of Loom shows significant improvements for JMeter. The memory consumption isn’t as low as suggested by Normal Mewada in their article, but the JVM manages the threads better and makes the execution lighter on the hardware.</p><p>In my opinion, I believe that Project Loom expands the boundaries of Java as a widely-used programming language and directly impacts the way performance tests are conducted, providing stability to the results and delivering information that closely resembles reality. Loom gives a new lease of life to JMeter to compete against tools like <a href="https://k6.io/">K6</a>. I hope <a href="https://www.apache.org/">Apache Software Foundation</a> includes official Loom support in JMeter soon.</p><p>Special thanks to <a href="https://github.com/pedrojara2405">Pedro Jara</a> for the guide and the support.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d321486517a8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/globant/loom-project-the-revolution-of-jmeter-d321486517a8">Loom Project: The Revolution of JMeter</a> was originally published in <a href="https://medium.com/globant">Globant</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blind Observability]]></title>
            <link>https://medium.com/globant/blind-observability-c2cd8720f58a?source=rss-3413fdadc029------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2cd8720f58a</guid>
            <category><![CDATA[quality-engineering]]></category>
            <dc:creator><![CDATA[Alejandro Longas]]></dc:creator>
            <pubDate>Thu, 12 Oct 2023 15:10:58 GMT</pubDate>
            <atom:updated>2023-10-12T15:10:58.726Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BN3ANm9CVO-wXl44yt9KiA.jpeg" /><figcaption>Tatacoa desert, Huila, Colombia</figcaption></figure><p>I have been a Performance Tester for 14 years, witnessing the transformation of what we know as the Internet: from Monolithic to Cloud, from AJAX to REST, and all the rapid evolution that JS has undergone. I remember very well that in my early tests, the biggest challenge was understanding the server’s behavior because there was simply no way to gather metrics or the sysadmin didn’t start NMON. That’s why when I encountered the concept of APM, I felt that all my problems had been solved. It had never been so easy for me to see what was happening on the server, and profiling a JVM was as simple as pressing a button; something that until that moment had been almost impossible due to permission issues in the environments and configuration of third-party tools.</p><p>Recently in my project, we detected significant differences in response time percentiles measured between the APM and JMeter. We directly asked the APM support team, and their response was that the differences were due to network latency. I conducted these measurements to determine the latency influence on the metrics, and the conclusion was that latency is not significant compared to the response times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/0*L-jv2kTRZSO8mMpr" /><figcaption><em>X-axis expressed in milliseconds</em></figcaption></figure><p>The command used to measure the latency: <em>curl -so /dev/null -w ‘%{time_pretransfer}\n’ &lt;request URL&gt;</em></p><p>With these results in mind, I designed a simple experiment: I conducted a spike load test using JMeter’s Open Model Thread Group. Analyzing and comparing the results, we find that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Xnge-fMlZTRSypzu" /><figcaption>Data comparison</figcaption></figure><p>The blue line represents the 95th percentile of the request measured from the APM, the red line is the 95th percentile of the same request measured with JMeter, and the gray line represents the absolute error between the two measurements.</p><p>Initially, the difference can be attributed to the time it takes for the infrastructure to scale, as services operate with the minimum possible number of containers when there is no load. As concurrency increases, the difference decreases to acceptable values (ultimately being statistical information), and the trends exhibit a similar behavior until the peak occurs at 4:13 PM, where the difference between the metrics is around 90%. After the peak, the difference never went back to acceptable levels.</p><p>It’s evident that the tools are measuring what’s happening in the Back End, as the trends are similar and the graphs grow and shrink at the same time. Considering this is statistical information and noting that APMs generally do not measure network latency, I think differences of 20% can be acceptable. However, a 90% difference implies a significant error when making decisions about releasing a version of the application into production.</p><p>Upon further investigation, I found that our APM collects 10k events per minute, and this value depends on the technology on which the measurements are being taken. For example, the default value for Java applications is 2k events per minute, and for node.js, it is 10k.</p><p>With this information in mind, I decided to reexamine the raw data to establish how many events JMeter had collected per minute, summarizing the information in the following graph:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bSaXTCCxACwRFizn" /><figcaption><em>Data compiled from JMeter</em></figcaption></figure><p>Upon reviewing this information, I was surprised. It means that in some instances, JMeter managed to collect more than 1M events in a minute, and on average, it uses 690K events to calculate percentiles. This implies that as requests to the Back End increase, the APM loses accuracy and struggles to record rapid changes effectively.</p><p>Let’s delve deeper into this by correlating the two graphs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*S_uvq6gaNAni9hdc" /><figcaption><em>Comparing all the data</em></figcaption></figure><p>When looking at the first part of the test (the yellow box), the difference is 32%. The load is low in order to warm up the infrastructure and the containers grow up. Anyway, JMeter is making calculations with 100K events.</p><p>Later, the difference stabilizes at around 20%, which is acceptable given the network conditions. At 04:11 PM, the peak starts. JMeter records 8,76 seconds, while New Relic records 2.4 seconds. The error was 93%, with a difference of 6.4 seconds. Whom should I trust? 6.4 seconds in terms of performance is a “NO GO” for releasing a new version of an app.</p><p>Assuming that by this time, the APM was collecting 10K events per minute, JMeter captured 656K events at the same moment. This means it has 65 times more data points for calculating percentiles. Statistically, it is more sensitive to registering a change in trends. To me, that difference in events signifies precision in the results.</p><p>The other peaks happened the same, the APM’s line is almost flat while JMeter’s line indicates the change in the tendency, at this moment JMeter was collecting more than 1M of events per minute while the APM is still collecting 10K events.</p><p>With this article, I would like to encourage teams, first and foremost, to verify configurations. It’s no secret that once the tools supporting the infrastructure are up and running, few people bother to check them. Secondly, it’s crucial to understand the limitations.</p><p><em>“In physics, the observer effect is the disturbance of an observed system by the act of observation”.</em></p><p><a href="https://en.wikipedia.org/wiki/Observer_effect_(physics)#:~:text=In%20physics%2C%20the%20observer%20effect,they%20measure%20in%20some%20manner."><em>Observer Effect</em></a></p><p>The following links you can find general information about the most popular tools used today:</p><ul><li><a href="https://docs.newrelic.com/docs/data-apis/manage-data/view-system-limits/">https://docs.newrelic.com/docs/data-apis/manage-data/view-system-limits/</a></li><li><a href="https://docs.datadoghq.com/tracing/trace_pipeline/ingestion_mechanisms/?tab=java">https://docs.datadoghq.com/tracing/trace_pipeline/ingestion_mechanisms/?tab=java</a></li><li><a href="https://www.dynatrace.com/support/help/observe-and-explore/logs/log-monitoring/log-monitoring-limits">https://www.dynatrace.com/support/help/observe-and-explore/logs/log-monitoring/log-monitoring-limits</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2cd8720f58a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/globant/blind-observability-c2cd8720f58a">Blind Observability</a> was originally published in <a href="https://medium.com/globant">Globant</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>