yourkit

“举报”阿里巴巴 Arthas,大幅降低 OOM Trouble shooting 门槛

拈花ヽ惹草 提交于 2020-08-09 21:46:08
作者 | Mason MA 【Arthas 官方社区正在举行征文活动,参加即有奖品拿哦~ 点击投稿 】 Arthas 是个不错的工具,这里要再安利一波,当然整个过程还用到了其他工具,如 MAT、YourKIT(这个是付费的),结合起来使用更加便于发现和解决问题。期间还和开发大佬多次沟通,分别获取了不同的信息。 一键安装并启动 Arthas 方式一:通过 Cloud Toolkit 实现 Arthas 一键远程诊断 Cloud Toolkit 是阿里云发布的免费本地 IDE 插件,帮助开发者更高效地开发、测试、诊断并部署应用。通过插件,可以将本地应用一键部署到任意服务器,甚至云端(ECS、EDAS、ACK、ACR 和 小程序云等);并且还内置了 Arthas 诊断、Dubbo工具、Terminal 终端、文件上传、函数计算 和 MySQL 执行器 来源: oschina 链接: https://my.oschina.net/u/4414119/blog/4309939

写优质Java代码的4个技巧

亡梦爱人 提交于 2020-08-07 04:02:06
  咱们平时的编程使命不外乎便是将相同的技能套件应用到不同的项目中去,关于大多数状况来说,这些技能都是能够满意方针的。然而,有的项目或许需求用到一些特别的技能,因而工程师们得深入研究,去寻觅那些最简略但最有用的办法。在前一篇文章中,咱们讨论了必要时能够运用的四种特别技能,这些特别技能能够创立更好的Java软件;而本文咱们将介绍一些有助于处理常见问题的通用规划战略和方针完结技能,即:   只做有意图性的优化   常量尽量运用枚举   从头界说类里边的equals()办法   尽量多运用多态性   值得留意的是,本文中描绘的技能并不是适用于一切状况。别的这些技能应该什么时候运用以及在什么当地运用,都是需求运用者经过深思熟虑的。   1.只做有意图性的优化   大型软件体系必定十分重视功用问题。尽管咱们期望能够写出最高效的代码,但许多时候,假如想对代码进行优化,咱们却无从下手。例如,下面的这段代码会影响到功用吗?   publicvoidprocessIntegers(Listintegers)   {for(Integervalue:integers){   for(inti=integers.size()-1;i>=0;i--)   {value+=integers.get(i);}}}   这就得视状况而定了。上面这段代码能够看出它的处理算法是O(n)(运用大O符号)

YourKit Profile On Remote Grails App

烈酒焚心 提交于 2020-01-17 01:20:30
问题 I am trying to track down a memory leak that I am having with a Grails application and am using the Yourkit Profiler, but am running into a problem. I have the Grails application running in Tomcat6 on the Production server and have unpacked the YourKit profiler and ran it according to the documentation using sudo bin/yjp.sh -attach , but I am getting the error: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect

Why does park/unpark have 60% CPU usage?

社会主义新天地 提交于 2020-01-01 03:26:09
问题 Recently we started stress testing our application (an XMPP based chat server) using YJP 11.0.9. During our test we noticed following strange behavior. Sampling shows sun.misc.Unsafe.unpark(Object) took 60% of CPU. For the same app Tracing shows that LockSupport.park(Object) took 52% of CPU. I did multiple tests to confirm results and every time I got similar results. I am unable to understand why unpark should take 60% time and why tracing shows exactly opposite results. Can someone help me

YourKit - The retained size of an object doesn't equal the retained size of all the objects referred by it

…衆ロ難τιáo~ 提交于 2019-12-21 15:07:06
问题 The retained size of an object doesn't equal the retained size of all the objects referred by it. Here is what is happening: Using YourKit to capture memory snapshot. click on an object & show instances by class type let's say the instance's retained memory is A bytes (600mb) expand and sum the retained size for the underlying instances let's say the sum is B (300mb) A >> B 回答1: Let me give you an example. First of all, you need to understand what retained size is. From the official

YourKit - The retained size of an object doesn't equal the retained size of all the objects referred by it

爷,独闯天下 提交于 2019-12-21 15:02:22
问题 The retained size of an object doesn't equal the retained size of all the objects referred by it. Here is what is happening: Using YourKit to capture memory snapshot. click on an object & show instances by class type let's say the instance's retained memory is A bytes (600mb) expand and sum the retained size for the underlying instances let's say the sum is B (300mb) A >> B 回答1: Let me give you an example. First of all, you need to understand what retained size is. From the official

Which Java profiler is better: JProfiler or YourKit? [closed]

◇◆丶佛笑我妖孽 提交于 2019-12-17 23:22:43
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . Which profiler is better for general purpose profiling and heap analysis? 90% of our apps are standalone command line programs with substantial database and numeric processing. The other 10% are webapps/servlet container apps (with very little JSP and NO SCRIPLETS!). Target

Weblogic server startup profiling tools

断了今生、忘了曾经 提交于 2019-12-13 17:20:19
问题 What would be the best tool or approach if I want to profile my weblogic startup and tune start-up timing. Can it be done by visual vm or jprofiler or yourkit? What would be the best? 回答1: If you use JProfiler, use the integration wizard for Weblogic to configure profiling by selecting Session->Integration Wizards->New Server Integration from the main menu. On the "Startup mode" step, select the "Wait for a connection from the JProfiler GUI" option. When you start the session, the "Session

How to profile Domino Agents (AMgr) with YourKit?

孤者浪人 提交于 2019-12-12 22:15:21
问题 Since I am having issues with a large Domino Agent, I wanted to be able to profile it. I've heard lots of lovely things about Yourkit, and followed the instructions in David Leedy's video: http://notesin9.com/index.php/2012/11/29/notesin9-091-xpages-memory-profiling-part-1/ I have created a text file, YourKitOptionsFile.txt with the following line: agentpath:C:\ProgramData\YourKit\yjpagent_13082_64_603ABE4D.dll= disablestacktelemetry,disableexceptiontelemetry,delay=10000,listen=192.168.1.40

Profiling a Mule ESB application

陌路散爱 提交于 2019-12-11 01:11:50
问题 The documentation that Mulesoft provides to help install the YourKit and use it to profile a Mule application is not very helpful. I went as far to install YourKit and integrate it into MuleStudio. When trying to set up a profile configuration, it asks for me an entry point for the Java Application (Main class). I am not quiet sure what is the entry point, as I simply just right click the flow diagram and click 'Run As -> Mule Application' Is there any better manual to help figure out how to