我的Jdeveloper随便点一个AM,code的显示速度和手指的反应速度跟不上,真的是着急,忍了好久,找到以下教程。

经过考虑,仅仅只是在jdev.conf(jdevbin/jdev/bin/jdev.con)

AddVMOption    -Dsun.java2d.noddraw=true

把注释放开,整个IDE的响应感觉提高了很多。爽,如丝般顺滑。

其实最有效的还是这个参数

#AddVMOption     -Xms512M
AddVMOption -Xms1024M

原文地址:

Is your JDeveloper Slow? - It shouldn't be!

By: Shay Shmeltzer | Director of Product Management - Oracle

One of the interesting aspects of the theory of relativity says that sometime time can be viewed differently by two people (the twin paradox). From time to time we get this post on OTN where someone is complaining that JDeveloper is slow on their machine. But what do you mean slow, can you give more specific information about what is slow and how much time it takes. Sometimes it is just a matter of opinion "things might look slow to you but fast to me", but sometimes there is something wrong and you can fix it.

So here are some tips I gathered over time on improving performance - and feel free to add your own in the comments.

Update Dec 2016 - This blog entry was written back in the 10.1.3 days of JDeveloper - but it still gets quite a lot of visitors so thought I share a few more up-to-date tips: JDeveloper's default memory settings are aiming to minimize memory consumption - but today's machine have much more memory - you should evaluate them and update them. Also there are various flags to Java that can help with better memory usage. Here are several blog entires that have details specific to JDeveloper - BexAngeloWesley. Also, we still see some anti-viruses which are doing "live scans" that slow JDeveloper loading classes - so try and see if temporarily disabling your antivirus helps. Using newer JDeveloper versions and JDK also helps - so if you are on an old version consider upgrading.

1. Get a better machine

If you try to run the studio edition of JDeveloper on a 256MB machine - you are going to have a lot of time to drink coffee. I know Bill Gates once said that all you'll need are 640kb - but things change. (also see points 6 and 8)

2. Are you running on battery power?

If you are you might be running into a nasty Swing bug that effects JDeveloper. See this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5095398

The workaround is to add an entry into your jdev.conf file [jdev-root]jdevbin

AddVMOption -Dsun.java2d.ddoffscreen=false

3. Is your code insight slow?

Many people are not aware that you can actually set the delay time for the code insight in JDeveloper. It is set to 1second by default and to many people this seems slow.

So go into tools->preferences->code editor->code insight and set it to something smaller.

4. Having delays switching back to JDeveloper from other applications?

Windows probably swap JDeveloper out of your memory. Gerard Davison's KeepResident extension can eliminate this.

See: http://www.orablogs.com/gdavison/archives/001659.html

5. JDeveloper have picks of consuming 100% CPU

We had some people who had this problem when they installed the memory monitor extension to JDeveloper. Removing this extension solved this problem.

6. Do you really need all those features?

Check if you are really using all the features that JDeveloper offers. If you are just doing Java/XML coding without all the visual editors - try the Java edition of JDeveloper. Less features but much lighter. Even if you do need to use the J2EE or Studio option - you might want to go into tools->preferences->extensions and disable extensions that you don't need.

7. JDeveloper gets resource hungry after several J2EE apps tests?

Try stopping the embedded OC4J (Run->Terminate from the menu). This will clean up some memory and it will start again on your next run.

8Eliminate DirectDraw

Another Java option set-up that solved the issue for some is:

AddVMOption -Dsun.java2d.noddraw=true

That's it for now - let me know if you have any other tips and I'll try and add tips as I get them.

========== For those who are too lazy to read the comments ===

Brian Duff Said:

8) You can also tweak JDeveloper to use less memory by altering the maximum memory VM parameter. JDev is optimized for 1GB by default, and will use as much memory as it can (up to 512MB) for caching. If you have less than 1GB, this makes the product swap a lot. See here for details on tweaking this.

9) Anti Viruses - some of them have been known to slow JDeveloper.

Chris Muir writes on this with a bit more details.

10) Sandra Muller have a couple of tips on the JHeadstart blog.

 

Is your JDeveloper Slow? - It shouldn't be!(转)的更多相关文章

  1. MySQL:动态开启慢查询日志(Slow Query Log)

    前言 在开发中,高效能的程序 也包括 高效能的查询,所以优化SQL也是程序员必要技能之一.要优化就必须要有慢日志记录才可以知道哪些查询慢,然后反向去修改 慢日志设置方式 写入文件 写入数据库 实践操作 ...

  2. mysql slow query---pt-query-digest----db structure consistency,monitor table records before and after transaction.

    将数据库脚本纳入版本管理是很必要的,尤其对于需要在客户那里部署升级的系统. 对于Python Django等框架,由于数据库是通过Model生成的,因此框架本身包括数据库升级工具,并通过代码版本间接管 ...

  3. jdbc autoReconnect=true 参数设置导致 slow log 爆表。

    1.过程 同事按照文档上配置了下面的jdbc url: jdbc:mysql://ip:port/db?autoReconnect=true&useUnicode=true&chara ...

  4. Integrating JAD decompiler into JDeveloper(转)

    原文地址:Integrating JAD decompiler into JDeveloper In JDeveloper, when debugging or otherwise navigatin ...

  5. Mysql slow query log

    一.概念部分:  顾名思义,慢查询日志中记录的是执行时间较长的query,也就是我们常说的slow query,通过设--log-slow-queries[=file_name]来打开该功能并设置记录 ...

  6. mysql中slow query log慢日志查询分析

    在mysql中slow query log是一个非常重要的功能,我们可以开启mysql的slow query log功能,这样就可以分析每条sql执行的状态与性能从而进行优化了. 一.慢查询日志 配置 ...

  7. Slow HTTP Denial of Service Attack

    整改建议 1.中断使用URL不支持HTTP方法访问的会话 2.限制HTTP头及包长至一个合理数值 3.设置一个绝对的会话超时时间 4.服务器支持backlog的情况下,需设置一个合理的大小 5.设置一 ...

  8. OA Framework - How to Find the Correct Version of JDeveloper to Use with E-Business Suite 11i or Release 12.x (Doc ID 416708.1)

    APPLIES TO: Oracle Applications Framework - Version 11.5.10.0 to 12.2.2 [Release 11.5.10 to 12.2] In ...

  9. redis专题--slow log详解

    SLOWLOG subcommand [argument] 什么是 SLOWLOG Slow log 是 Redis 用来记录查询执行时间的日志系统. 查询执行时间指的是不包括像客户端响应(talki ...

随机推荐

  1. 在IBM学到的东西,到底对我的程序生涯产生了多大的影响

    我和很多人交流过一个有趣的现象,那就是刚毕业到30岁这段时间,会觉得时间过得很慢,总觉得自己还很年轻,但是一旦过了30岁,时间就如白驹过隙,一年又一年飞逝而过. 我自己也是,眼瞅着毕业快15年了,15 ...

  2. P3313 [SDOI2014]旅行

    P3313 [SDOI2014]旅行 树链剖分+动态线段树(并不是lct) 显然的,我们对于每一个宗教都要维护一个线段树. (那么空间不是爆炸了吗) 在这里引入:动态开点线段树 就是需要的点开起来,不 ...

  3. Kali配置网络

    虚拟机NAT网关:192.168.50.1 主机VM8网址:192.168.50.2 虚拟机网卡:192.168.50.30 vim /etc/network/interfaces # The loo ...

  4. tomcat 7下spring 4.x mvc集成websocket以及sockjs完全参考指南(含nginx/https支持)

    之所以sockjs会存在,说得不好听点,就是因为微软是个流氓,现在使用windows 7的系统仍然有近半,而windows 7默认自带的是ie 8,有些会自动更新到ie 9,但是大部分非IT用户其实都 ...

  5. troubleshooting-When importing query results in parallel, you must specify --split-by.

    原因分析 -m 4 \ 导数命令中map task number=4,当-m 设置的值大于1时,split-by必须设置字段(需要是 int 类型的字段),如果不是 int类型的字段,则需要加上参数- ...

  6. trust zone之我见【转】

    本文转载自:https://blog.csdn.net/hovan/article/details/42520879 老板交待任务,这个星期我都在研究trust zone的东东,之前有看过代码,但没有 ...

  7. 3G下的无压缩视频传输(基于嵌入式linux) (转载)

    本课题研究嵌入式系统在数据采集,3G无线通信方面的应用,开发集视频采集.地理信息采集.无线传输.客户机/服务器模式于一体的车载终端,实现终端采集视频与GPS信息的传输,支持服务器端显示视频与GPS信息 ...

  8. 【转载】TCP慢启动、拥塞避免、快速重传、快速回复

    转载自:TCP慢启动.拥塞避免.快速重传.快速回复 转自:http://blog.csdn.net/itmacar/article/details/12278769 感谢博主的辛勤成果! 为了防止网络 ...

  9. ns-3 NetAnim遇到了一个问题

    安装好了 NetAnim 之后,使用NS3原有例子 third.cc ,在 Simulator::run() 前面添加如下语句: AnimationInterface anim("third ...

  10. HDU 1043 Eight(双向BFS+康托展开)

    http://acm.hdu.edu.cn/showproblem.php?pid=1043 题意:给出一个八数码,求出到达指定状态的路径. 思路:路径寻找问题.在这道题里用到的知识点挺多的.第一次用 ...