当前位置:网站首页>Spark 本地程序启动缓慢问题排查
Spark 本地程序启动缓慢问题排查
2022-07-27 14:23:00 【wankunde】
今天测试spark 本地任务的时候,发现程序每次启动的时候都要等好久,才能开始正常进入启动程序,严重干扰了Debug的节奏。那就开始把~~
加上Yourkit的启动参数,其中 tracing 参数表示启动的时候就开始进行 tracing 级别的CPU profiling,其他几种 profiling级别可以根据需要调整。
spark.driver.extraJavaOptions -agentpath:/Applications/YourKit-Java-Profiler-2019.8.app/Contents/Resources/bin/mac/libyjpagent.dylib=exceptions=disable,delay=100,tracing

看下程序启动的堆栈,发现卡的还是java的net包工具类,顺便看了一眼源代码,那就写个测试类来测试一下是不是确实是这里卡掉了。
本地测试程序:
object IpTest extends Logging {
def main(args: Array[String]): Unit = {
logInfo("begin getCanonicalHostName")
val address = InetAddress.getLocalHost
println(address.getCanonicalHostName)
logInfo("end getCanonicalHostName")
}
}
20/03/04 00:21:53 INFO IpTest: begin getCanonicalHostName
192.168.0.194
20/03/04 00:22:23 INFO IpTest: end getCanonicalHostName
测试结果符合预期。
想了一下,看到堆栈最顶层竟然是Inet6AddressImpl 的实现类的问题。
感觉肯定是DNS 解析服务出问题了。
进入路由器,关闭IPv6 无效果。
没有办法了,强制在路由器中指定DNS解析服务器,搞定~~
20/03/04 00:51:59 INFO IpTest: begin getCanonicalHostName
192.168.0.194
20/03/04 00:51:59 INFO IpTest: end getCanonicalHostName
边栏推荐
- EMC design scheme of USB2.0 Interface
- Comparison of advantages and disadvantages between instrument amplifier and operational amplifier
- Network equipment hard core technology insider router Chapter 4 Jia Baoyu sleepwalking in Taixu Fantasy (Part 2)
- Zhou Hongyi: if the digital security ability is backward, it will also be beaten
- cap理论和base理论
- Unity performance optimization ----- LOD (level of detail) of rendering optimization (GPU)
- Singles cup, web:web check in
- 一些二进制位操作
- Sword finger offer cut rope
- 西瓜书《机器学习》阅读笔记之第一章绪论
猜你喜欢

Digital storage oscilloscope based on FIFO idt7202-12

Selenium reports an error: session not created: this version of chromedriver only supports chrome version 81

How to edit a framework resource file separately

Kubernetes CNI classification / operation mechanism

3.3-5v conversion

Leetcode-1737- minimum number of characters to change if one of the three conditions is met

Leetcode 74. search two-dimensional matrix bisection /medium

Code coverage statistical artifact -jacobo tool practice

反射

Kotlin的基础用法
随机推荐
Network equipment hard core technology insider router Chapter 7 tompkinson roaming the network world (Part 2)
Network equipment hard core technology insider router 19 dpdk (IV)
Adaptation verification new occupation is coming! Huayun data participated in the preparation of the national vocational skill standard for information system adaptation verifiers
Leetcode 244 week competition - post competition supplementary question solution [broccoli players]
The first common node of the two linked lists of "Jianzhi offer"
Dialog manager Chapter 3: create controls
Network equipment hard core technology insider router Chapter 14 from deer by device to router (middle)
Lua study notes
多线程环境下CountDownLatch的用法
Leetcode 81. search rotation sort array II binary /medium
TL431-2.5v基准电压芯片几种基本用法
Network equipment hard core technology insider router chapter Cisco asr9900 disassembly (I)
Network equipment hard core technology insider router Chapter 17 dpdk and its prequel (II)
Unity performance optimization ----- LOD (level of detail) of rendering optimization (GPU)
Network equipment hard core technology insider router 20 dpdk (V)
STM32 can communication filter setting problem
Problem solving in magic tower project
Deveco studio2.1 operation item error
Leetcode interview question 17.21. water volume double pointer of histogram, monotonic stack /hard
RS485接口的EMC设计方案