arthas | Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas

 by   alibaba Java Version: arthas-all-3.6.9 License: Apache-2.0

kandi X-RAY | arthas Summary

kandi X-RAY | arthas Summary

arthas is a Java library typically used in Institutions, Learning, Administration, Public Services applications. arthas has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub, Maven.

Arthas is a Java Diagnostic tool open sourced by Alibaba. Arthas allows developers to troubleshoot production issues for Java applications without modifying code or restarting servers.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              arthas has a medium active ecosystem.
              It has 32549 star(s) with 7016 fork(s). There are 1144 watchers for this library.
              There were 2 major release(s) in the last 12 months.
              There are 211 open issues and 1561 have been closed. On average issues are closed in 58 days. There are 57 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of arthas is arthas-all-3.6.9

            kandi-Quality Quality

              arthas has 0 bugs and 0 code smells.

            kandi-Security Security

              arthas has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              arthas code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              arthas is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              arthas releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              arthas saves you 23837 person hours of effort in developing the same functionality from scratch.
              It has 48964 lines of code, 4741 functions and 642 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed arthas and discovered the below as its top functions. This is intended to give you an instant insight into arthas implemented functionality, and help decide if they suit your requirements.
            • Render object .
            • Read a single character .
            • binds a port
            • Sample threads from origin threads .
            • Direct view to direct view
            • Compares two arrays .
            • Process the received option .
            • Get all classes in a package
            • Connect to arthas server
            • Returns a stacktrace for the given threadinfo
            Get all kandi verified functions for this library.

            arthas Key Features

            No Key Features are available at this moment for arthas.

            arthas Examples and Code Snippets

            No Code Snippets are available at this moment for arthas.

            Community Discussions

            QUESTION

            what may cause waiting state thread increase all the time in Java 8
            Asked 2020-Sep-24 at 16:06

            Today I found my Java 8 apps have many thread is in WAITING state:

            ...

            ANSWER

            Answered 2020-Sep-24 at 16:06

            The stack trace you have shown is 'situation normal': That is a threadpool executor thread that is ready to do work, but the queue of work is empty. In this case, 'waiting' means: I'm waiting for a job to do, not: "I have stuff to do, but cannot do because I am waiting for stuff to be finished first".

            Now, 3000 threads is itself somewhat of a concern; each thread has its own stack space. How large that is depends on your -Xss parameter, but they tend to go from 64k to 1MB. If it's 1MB, that's... 3GB of stack space, that's... suboptimal. This number (how many threads you have waiting around for a job to accept) should also not be growing much after a VM has heated up.

            If all/most of those WAITING threads have a similar trace, then there are really only two options:

            • You made an executor and keep asking it, over time, to add more and more threads. I doubt this, but it's possible.
            • You keep making executors. Don't do this.

            The idea behind an executor is that you make only one, or at least very very few of these.

            If you MUST create them as part of your running app (vs. the normal thing, of creating jobs and feeding them to the singleton executor), then be aware they are effectively resources: if you don't 'close' them, your process will require more and more resources, until eventually the VM will crash when it runs out.

            To close them, you invoke shutdown() which is asking nicely, and shutdownNow() which is more aggressive and will any not-yet-picked-up jobs permanently undone.

            So, to recap:

            • You are making new executors during normal processing in your app. Search for new ScheduledThreadPoolExecutor in your codebase and inspect the situation. Add some logging if you must to see this in action.
            • Then, most likely, you want to fix this and stop making new executors in the first place - just make one, once, and feed jobs into this one executor.
            • If truly it makes sense to make them, use some guardian construct to ensure that you also clean them up when you're done using them. You can search for how to do so safely; it's a bit complicated, as you need to decide what to do with any jobs in the queue that are not yet done. If that's not an issue, it's easy: .shutdown() will get the job done.

            Source https://stackoverflow.com/questions/64049987

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install arthas

            Downloadarthas-boot.jar,Start with java command:.

            Support

            Online Tutorials(Recommended)User manualInstallationDownloadQuick startAdvanced usageCommandsWebConsoleDockerArthas Spring Boot StarterUser casesFAQCompile and debug/How to contributeRelease Notes
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Java Libraries

            CS-Notes

            by CyC2018

            JavaGuide

            by Snailclimb

            LeetCodeAnimation

            by MisterBooo

            spring-boot

            by spring-projects

            Try Top Libraries by alibaba

            p3c

            by alibabaKotlin

            easyexcel

            by alibabaJava

            druid

            by alibabaJava

            nacos

            by alibabaJava

            canal

            by alibabaJava