六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 55|回复: 0

log4j 配置导致的性能问题

[复制链接]

升级  52.67%

35

主题

35

主题

35

主题

秀才

Rank: 2

积分
129
 楼主| 发表于 2013-2-7 14:36:14 | 显示全部楼层 |阅读模式
cpu 占用居高不下。
问题是,log4j 的配置不当。
参看:
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html

pattern L M 应该只在 debug 级别使用,呵呵。
stack 也是。

参见: http://weblogs.java.net/blog/zarar/archive/2005/11/sneaky_sneaky_l.html

eclipse 下如何link 外部文件。

Eclipse really wants to create a project directory to hold its metadata. However, there's nothing that stops you from having a folder "within" a project but located outside of it.

File -> New Project

then

File -> New Folder, click "Advanced" and select "Link to folder in the file system".

I'd suggest you avoid linking folders that exist as subdirectories of your workspace directory. Linking something that's a subdirectory of a workspace directory will lead to a world of pain and resources being out of sync.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表