<?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 ezio on Medium]]></title>
        <description><![CDATA[Stories by ezio on Medium]]></description>
        <link>https://medium.com/@mohitofficial766?source=rss-ade15bdd6312------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-YFclqsJfENkemG1</url>
            <title>Stories by ezio on Medium</title>
            <link>https://medium.com/@mohitofficial766?source=rss-ade15bdd6312------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:00:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohitofficial766/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[Debugging OOM in Java Kubernetes Pods]]></title>
            <link>https://medium.com/@mohitofficial766/debugging-oom-in-java-kubernetes-pods-8b18d16b5b0e?source=rss-ade15bdd6312------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b18d16b5b0e</guid>
            <dc:creator><![CDATA[ezio]]></dc:creator>
            <pubDate>Fri, 04 Jul 2025 19:17:06 GMT</pubDate>
            <atom:updated>2025-07-04T19:17:06.403Z</atom:updated>
            <content:encoded><![CDATA[<p>So, your Kubernetes pod just crashed in a tragic, yet predictable way — taken down by an OOM (Out of Memory) error. The aftermath is littered with JVM heap dumps, log files full of cryptic stack traces, and a Kubernetes Evicted status that might as well say, &quot;You done messed up.&quot;</p><p>Fear not, weary developer! We’re about to embark on a debugging adventure — part detective novel, part mystery story, and fully caffeinated. Grab your Sherlock Holmes hat (or just more coffee), and let’s investigate.</p><h3>Act 1: The Crime Scene — “OOMKilled” Strikes Again</h3><h3>Symptoms of OOM in Java Pods:</h3><ul><li>Your pod <strong>randomly disappears</strong> like your last pizza slice.</li><li>kubectl get pods shows OOMKilled, which is Kubernetes-speak for &quot;I had to put this one down.&quot;</li><li>The logs contain terrifying messages like:</li></ul><pre>java.lang.OutOfMemoryError: Java heap space</pre><p>or even worse:</p><pre>java.lang.OutOfMemoryError: Metaspace</pre><ul><li>The application starts behaving like a stubborn toddler — slow, unresponsive, and eventually throwing a tantrum before passing out.</li></ul><h3>Quick Diagnosis:</h3><p>Before you rewrite the entire codebase in Rust (we’ve all thought about it), let’s start with some basic checks:</p><pre>kubectl describe pod &lt;your-pod-name&gt;</pre><p>Check for OOMKilled events under the Last State section.</p><p>Also, look at memory usage:</p><pre>kubectl top pod &lt;your-pod-name&gt;</pre><p>If your memory usage is sky-high, congratulations! You have an OOM problem. Let’s fix it.</p><h3>Act 2: The Usual Suspects — What’s Eating Your Memory?</h3><h3>1. Your JVM is a Hoarder</h3><p>By default, the JVM thinks it has infinite resources (how optimistic!). If you didn’t specify memory limits, it might be consuming the entire node before Kubernetes pulls the plug.</p><h4>Solution:</h4><p>Set memory limits and JVM options properly:</p><pre>resources:<br>  requests:<br>    memory: &quot;512Mi&quot;<br>  limits:<br>    memory: &quot;1Gi&quot;</pre><p>Then adjust your JVM to respect these limits:</p><pre>JAVA_OPTS=&quot;-Xmx768m -Xms512m&quot;</pre><p>(Pro tip: <strong>Never</strong> set -Xmx equal to the pod memory limit. Leave room for metaspace, stack, and other memory-consuming gremlins.)</p><h3>2. The Infamous Memory Leak</h3><p>Memory leaks in Java are like bad roommates — they take up space, don’t clean up after themselves, and eventually make the whole place unlivable.</p><h4>Solution:</h4><ul><li>Enable <strong>GC logs</strong> to see what’s happening:</li></ul><pre>-XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:/logs/gc.log</pre><ul><li>Use <strong>heap dumps</strong> to analyze memory usage:</li></ul><pre>jcmd &lt;pid&gt; GC.heap_dump /tmp/heapdump.hprof</pre><ul><li>(Then throw it into <strong>Eclipse MAT</strong> or <strong>JProfiler</strong> to find the memory hogs.)</li><li>Look for <strong>forgotten static collections</strong>, <strong>unclosed streams</strong>, or <strong>infinite caches</strong>.</li></ul><h4>What if Your Pod is Ephemeral?</h4><p>If your pod is ephemeral and disappears before you can grab a heap dump, consider these strategies:</p><ul><li><strong>Enable Persistent Storage:</strong> Mount a volume where heap dumps can be saved.</li></ul><pre>volumeMounts:   <br>  - name: heap-dump-storage     <br>    mountPath: /heapdumps</pre><ul><li><strong>Use a Sidecar Container:</strong> Deploy a sidecar that monitors memory and captures dumps before the pod is killed.</li><li><strong>Configure a PreStop Hook:</strong></li></ul><pre>    apiVersion: v1<br>    kind: Pod<br>    metadata:<br>      name: prestop-example<br>    spec:<br>      containers:<br>      - name: app-container<br>        image: my-app:latest<br>        lifecycle:<br>          preStop:<br>            exec:<br>              command: [&quot;sh&quot;, &quot;-c&quot;, &quot;jcmd &lt;pid&gt; GC.heap_dump /heapdumps/dump.hprof&quot;]</pre><h3>3. Metaspace Mayhem</h3><p>If you see java.lang.OutOfMemoryError: Metaspace, it means your app is generating way too many classes (looking at you, Spring Boot with a thousand dynamic proxies).</p><h4>Solution:</h4><p>Tune metaspace settings:</p><pre>-XX:MaxMetaspaceSize=256m</pre><p>Or, you know, stop deploying a microservice that thinks it’s an entire monolith.</p><h3>Act 3: Preventing Future Catastrophes</h3><h3>1. Monitor Everything</h3><p>Use Prometheus + Grafana to track memory usage over time. If your memory graph looks like a staircase to heaven, you have a leak.</p><h3>2. Auto-Restart Your Pods (But Not Blindly)</h3><p>Set liveness probes to restart pods that get stuck:</p><pre>livenessProbe:<br>  exec:<br>    command:<br>    - cat<br>    - /tmp/healthy<br>  initialDelaySeconds: 5<br>  periodSeconds: 10</pre><h3>3. Test Under Load</h3><p>Run a <strong>stress test</strong> before deploying:</p><pre>kubectl run stress --image=polinux/stress -- --vm 1 --vm-bytes 900M --timeout 10s</pre><p>If your pod crumbles like a stale cookie, you need better memory management.</p><h3>Conclusion: Your Pod Lives to See Another Day!</h3><p>By following these steps, you’ll go from a helpless OOM victim to a debugging superhero. No more disappearing pods, mysterious crashes, or Kubernetes playing executioner. Just a well-behaved, memory-efficient Java app happily running in its container-sized home.</p><p>Now go forth, and may your memory usage always be within limits! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b18d16b5b0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Governance: How OpenMetadata is Pioneering AI-Driven Data Management]]></title>
            <link>https://medium.com/@mohitofficial766/automated-governance-how-openmetadata-is-pioneering-ai-driven-data-management-c784879d0847?source=rss-ade15bdd6312------2</link>
            <guid isPermaLink="false">https://medium.com/p/c784879d0847</guid>
            <category><![CDATA[open-metadata]]></category>
            <category><![CDATA[data-catalog]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[metadata-management]]></category>
            <dc:creator><![CDATA[ezio]]></dc:creator>
            <pubDate>Tue, 15 Apr 2025 18:22:15 GMT</pubDate>
            <atom:updated>2025-04-15T18:22:15.361Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s digital era, data isn’t just an asset — it’s a strategic driver that fuels innovation, insight, and business growth. However, as data volumes increase and environments become more complex, the traditional, manual approach to data governance is quickly turning from a helpful process into a bottleneck. This is where automated governance steps in.</p><p>Imagine if your data governance system could:</p><ul><li>Automatically generate and update documentation without endless manual intervention.</li><li>Intelligently assign tier levels to data assets based on usage, quality, and business impact.</li><li>Streamline and even automate glossary approvals to ensure consistency and compliance across your organization.</li></ul><p>Enter <strong>OpenMetadata</strong> — an open‑source metadata management platform that is rapidly evolving from a data catalog into a comprehensive, AI‑driven governance solution. OpenMetadata harnesses the power of intelligent agents and automation workflows to ensure that data governance is not just efficient, but also dynamic and future‑ready.</p><h3>The Need for Automated Governance</h3><p>Data governance is all about ensuring that the right people have access to the right data at the right time, all while maintaining data quality, security, and compliance. Traditional methods of enforcing governance policies are often manual, time‑consuming, and prone to errors. This scenario leads to:</p><ul><li><strong>Slow documentation cycles</strong> that delay insights.</li><li><strong>Inefficient tier classification</strong> of data assets, leading to poor risk management.</li><li><strong>Cumbersome approval workflows</strong> in glossaries and business terms, which slow down collaboration and decision‑making.</li></ul><p>Automated governance addresses these challenges by enabling systems to keep pace with rapid data evolution and by allowing data teams to focus on higher‑value activities rather than routine maintenance.</p><h3>How OpenMetadata Drives Automated Governance with AI</h3><p>OpenMetadata isn’t just a data catalog — it’s an integrated platform that blends metadata ingestion, rich UI collaboration, and intelligent automation to streamline governance at scale. Here’s a closer look at the AI‑powered features that make automated governance possible:</p><h3>1. AI Documentation Agents</h3><p>Documentation is vital to governance, but manually writing and updating it is a time‑intensive endeavor. OpenMetadata’s <strong>AI Documentation Agents</strong> automatically generate insightful documentation for your data assets. These agents analyze services, schema definitions, utilizing the power of LLMs to produce clear, up‑to‑date documentation — reducing manual input from hours to minutes. This ensures that as soon as your data evolves, so does its supporting documentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tT9D3p2ly42JCHc-AThp9Q.png" /></figure><h3>2. AI Tier Agent</h3><p>Determining the “tier” or criticality of a data asset — whether it’s mission‑critical or used only occasionally — has traditionally been a manual and subjective process. Enter the <strong>AI Tier Agent</strong>. This feature automatically reviews various parameters to recommend a tier for each asset. Not only does this standardize classifications across your organization, but it also helps data stewards prioritize governance and quality efforts where they matter most.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*utl64P18GNmUnxQNNFgIww.png" /></figure><h3>3. Automated Glossary Approval Workflow</h3><p>A robust business glossary is the backbone of effective data governance, ensuring that everyone in your organization speaks the same language about data. Yet, the process of creating and approving new glossary terms can be slow and prone to discrepancies. OpenMetadata’s <strong>Automated Glossary Approval Workflow</strong> takes the friction out of this process. The system reviews new or edited glossary entries, suggests improvements, and routes them through an approval chain automatically. This not only accelerates the approval process but also enforces consistency and standardization across your organization’s data vocabulary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OHqDVqcngTHVX7vaeUyrcQ.png" /></figure><h3>The Broader Impact of Automated Governance</h3><p>By automating mundane governance tasks, OpenMetadata empowers data teams to:</p><ul><li><strong>Save valuable time:</strong> Automation lets you focus on generating insights rather than policing data documentation.</li><li><strong>Improve consistency:</strong> With AI‑driven recommendations for documentation and tiering, organizations achieve a uniform governance standard.</li><li><strong>Enhance compliance:</strong> Automated workflows reduce the risk of errors in regulatory reporting and ensure that key data remains up‑to‑date and properly governed.</li><li><strong>Boost collaboration:</strong> With real‑time updates and centralized workflows, everyone — from data engineers to business analysts — can work together more effectively.</li></ul><p>Moreover, the blend of automated governance capabilities doesn’t come at the expense of flexibility. Whether you’re scaling your data infrastructure or refining your governance processes, automated governance with OpenMetadata provides the efficiency and scalability needed for today’s fast‑paced business environment.</p><h3>Conclusion</h3><p>Automated governance is no longer a futuristic concept — it’s a practical necessity in the modern data landscape. With OpenMetadata, organizations can harness the power of AI to streamline documentation, intelligently classify data assets, and automate governance workflows such as glossary approvals. These advancements not only drive operational efficiency but also empower teams to make data‑driven decisions with confidence.</p><p>Embrace the revolution in governance automation. Let OpenMetadata transform your data chaos into a well‑organized, dynamic ecosystem where every asset is documented, classified, and governed automatically — and intelligently.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c784879d0847" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>