首页
Search
1
v2ray异常错误之二
3,310 阅读
2
linux时区设置
2,698 阅读
3
DB2常用操作
2,173 阅读
4
websphere修改jvm内存xmx和xms
1,929 阅读
5
nfs客户端文件属主为nobody的现象
1,552 阅读
技术
生活
运动
游戏
电影
登录
Search
标签搜索
docker
linux
troubleshooting
nginx
secure
truenas
mysql
windows
python
esxi
docker swarm
oracle
zabbix
tomcat
blog
dsm
群晖
rpa
freenas
db
yuc
累计撰写
291
篇文章
累计收到
0
条评论
首页
栏目
技术
生活
运动
游戏
电影
页面
搜索到
1
篇与
的结果
2023-08-07
mat脚本ParseHeapDump.sh之cannot open display
0x1 错误 在导出 jvm 内存转储后使用mat工具进行分析,但是在执行 ParseHeapDump.sh 后提示如下错误: cannot open display 尝试了很多办法,其中包括去掉所有参数直接执行此脚本,以及执行脚本实际调用的命令 MemoryAnalyzer,又或者更换 JDK 版本,都是报错的这个内容。在根据 mat 的相关内容进行搜索,也没有解决办法 最后通过 display 的关键字搜索出来了解决方案,如下: export DISPLAY=:0 xset q 参考文档如下: https://askubuntu.com/questions/476036/xset-unable-to-open-display 那么为什么会出现这种情况呢?相信弄清楚 DISPLAY=:0 就可以了,有一些难以理解的解释: Explicitly setting DISPLAY=:0 is usually a way to access a machine's local display from outside the local session, such as over a remote access or from a cron job :0 is usually the local display (i.e. the main display of the computer when you sit in front of it). :1 is often used by services like SSH when you enable display forwarding and log into a remote computer. It can also be modified by startup scripts which try to "fix" it. To find out whether this is happening, run grep DISPLAY ~/.??* .??* is a trick to get all dot files without .. and . (parent and current folder). If that doesn't print anything, check /etc/profile,/etc/bash* and /etc/bash*/* in a similar manner. I couldn't find a useful manual for xmacro but most X11 application support the option -d or -display to override $DISPLAY.
2023年08月07日
8 阅读
0 评论
0 点赞