<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Swapnil B. Bhisey</title>
    <description>The latest articles on DEV Community by Swapnil B. Bhisey (@bhisey_swapnil).</description>
    <link>https://dev.to/bhisey_swapnil</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F645614%2F1737c7d8-49a5-41ee-ae5c-fff970496eb2.jpg</url>
      <title>DEV Community: Swapnil B. Bhisey</title>
      <link>https://dev.to/bhisey_swapnil</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bhisey_swapnil"/>
    <language>en</language>
    <item>
      <title>Cassandra Error (Visualized)</title>
      <dc:creator>Swapnil B. Bhisey</dc:creator>
      <pubDate>Thu, 08 Sep 2022 05:22:52 +0000</pubDate>
      <link>https://dev.to/bhisey_swapnil/cassandra-errors-5792</link>
      <guid>https://dev.to/bhisey_swapnil/cassandra-errors-5792</guid>
      <description>&lt;p&gt;Success or Failure of Request in Cassandra depends on success or failure of request on more than one machine as per consistency type and driver setting. It's important to understand where request failed to troubleshoot further. &lt;br&gt;
I am visual person so tried drawing diagram to make it easy to understand.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--suLWcc1p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/alkh530gmwbhp2l4dkqs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--suLWcc1p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/alkh530gmwbhp2l4dkqs.png" alt="Image description" width="880" height="766"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Refer following for more information&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.datastax.com/blog/2014/10/cassandra-error-handling-done-right"&gt;https://www.datastax.com/blog/2014/10/cassandra-error-handling-done-right&lt;/a&gt;  &lt;a href="https://docs.datastax.com/en/developer/java-driver/3.6/manual/retries/"&gt;https://docs.datastax.com/en/developer/java-driver/3.6/manual/retries/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Collecting Java Flight Recording (JFR) on openjdk</title>
      <dc:creator>Swapnil B. Bhisey</dc:creator>
      <pubDate>Mon, 07 Jun 2021 23:26:17 +0000</pubDate>
      <link>https://dev.to/bhisey_swapnil/collecting-java-flight-recording-jfr-on-openjdk-5a5c</link>
      <guid>https://dev.to/bhisey_swapnil/collecting-java-flight-recording-jfr-on-openjdk-5a5c</guid>
      <description>&lt;p&gt;From OpenJDK 8u262￼ has JFR support as its backported with￼ - JDK-8223147: JFR Backport.&lt;/p&gt;

&lt;p&gt;Following is just in case if you want to use JFR on openjdk (possible through azul). We just azul opnjdk and it works on my lab instance for collecting JFR. In case in future if anyone wants to use all steps.&lt;/p&gt;

&lt;p&gt;With openjdk JFR &lt;code&gt;compress=true&lt;/code&gt; don’t work but &lt;code&gt;settings=profile&lt;/code&gt; does work.&lt;/p&gt;

&lt;p&gt;Java Mission Control from oracle was not able to read the file but you can use zulu zmc .&lt;/p&gt;

&lt;p&gt;To download azul OSS jdk&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.azul.com/downloads/zulu-community/?architecture=x86-64-bit&amp;amp;package=jdk"&gt;https://www.azul.com/downloads/zulu-community/?architecture=x86-64-bit&amp;amp;package=jdk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As my default JMC did not work with .jfr generated by zing jdk I used following.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.azul.com/products/zulu-mission-control/"&gt;https://www.azul.com/products/zulu-mission-control/&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Unlock commercial features.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo -u &amp;lt;user&amp;gt; jcmd &amp;lt;pid&amp;gt;  VM.unlock_commercial_features
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Start JFR collection with

&lt;code&gt;settings=profile&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo -u &amp;lt;user&amp;gt; jcmd &amp;lt;PID&amp;gt; JFR.start name=&amp;lt;jfr_name&amp;gt; settings=profile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Dump JFR
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo -u &amp;lt;user&amp;gt; jcmd &amp;lt;PID&amp;gt; JFR.dump name=&amp;lt;jfr_name&amp;gt; filename=/tmp/`hostname -i`.jfr
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Make sure JFR file is generated.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ls -lrt /tmp/`hostname -i`.jfr
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Stop JFR process
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo -u &amp;lt;user&amp;gt; /usr/lib/jvm/java-1.8.0-openjdk/bin/jcmd  &amp;lt;PID&amp;gt; JFR.stop name=&amp;lt;jfr_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Check if any additional JFR process are runing and stop if its not in use
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo -u &amp;lt;user&amp;gt; jcmd &amp;lt;PID&amp;gt; JFR.check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>jfr</category>
      <category>openjdk</category>
      <category>azul</category>
    </item>
  </channel>
</rss>
