Intellij想法使用10001端口 [英] Intellij idea using 10001 port

查看:378
本文介绍了Intellij想法使用10001端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Intellij IDEA 12公开预览默认情况下正在侦听其中一个插件的10001端口。在我们公司,我们使用这个端口用于其他目的,似乎没有简单的方法来改变这个...任何人都可以建议任何选择?谷歌搜索大约一个小时无济于事。

Intellij IDEA 12 Public Preview by default is listening to 10001 port for one of its plugins. In our company we use this port for other purposes and there seems to be no easy way to change this... Can anyone suggest any options? Been googling for about an hour to no avail.

推荐答案

IntelliJ IDEA EAP版本附带 YourKit Java Profiler 默认启用代理,以便用户可以开箱即用CPU和内存快照来报告性能问题。

IntelliJ IDEA EAP builds come with the YourKit Java Profiler agent enabled by default so that users can take CPU and Memory snapshots out of the box to report performance problems.

代理通过启用idea(64.exe).vmoptions file:

-agentlib:yjpagent=disablej2ee,disablealloc,sessionname=IntelliJIdea12

您可以删除此行以禁用可释放10001个端口的探查器代理。
另一种解决方案是使用代理商选项更改默认端口:

You can remove this line to disable profiler agent that will free up 10001+ ports. Another solution is to change the default port using agent options:

-agentlib:yjpagent = disablej2ee,disablealloc,sessionname = IntelliJIdea12 ,port = 31337

如果您使用的是Mac,此配置是通过 Info.plist 完成的,请参阅常见问题

If you are on Mac, this configuration is done via Info.plist, see the FAQ.

在Linux上它已添加到 idea.sh script:

On Linux it's added in idea.sh script:

IS_EAP="true"
if [ "$IS_EAP" = "true" ]; then
  OS_NAME=`echo $OS_TYPE | "$TR" '[:upper:]' '[:lower:]'`
  AGENT_LIB="yjpagent-$OS_NAME$BITS"
  if [ -r "$IDE_BIN_HOME/lib$AGENT_LIB.so" ]; then
    AGENT="-agentlib:$AGENT_LIB=disablej2ee,disablealloc,sessionname=IntelliJIdea12"
  fi
fi

只需更改为 IS_EAP =false或删除座席 .so 文件以禁用它。

Just change to IS_EAP="false" or delete the agent .so file to disable it.

遵循弗拉基米尔的建议我已已创建默认情况下请求使用 onlylocal 选项,随时投票。

Following Vladimir's suggestion I've created a request to use onlylocal option by default, feel free to vote.

这篇关于Intellij想法使用10001端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆