解决MyEclipse运行太慢

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/i5252592/article/details/83724417
MyEclipse运行太慢
首先:打开Myeclipse---->window--->preferences--->Myeclipse--->Validation
build下除了 Classpath dependence validate
其他勾全部去掉。

大家一定对buileding workspace时那缓慢的速度给困扰到了吧~
其实只要把project选项里的 building automatically前的勾去掉,就可以快很多了。。

另外大家一定对 myeclipse 的速度经常感到痛苦把,ok,现在开始给 myeclipse 提速:

一、加大JVM的非堆内存
打开 myeclipse.ini
MyEclipse8.5 myeclipse.ini里的内容:
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-install
D:/Program Files/Genuitec/MyEclipse 8.5
-vm
D:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
-configuration
configuration
-vmargs
-Xmx512m
-XX:MaxPermSize=512m //原来是256我改为512
-XX:ReservedCodeCacheSize=64m
把下面的那个 -XX:MaxPermSize 调大,比如 -XX:MaxPermSize=512M.

几乎每次 eclipse 卡到当都是因为这个 非堆内存 不足造成的,把最大跟最小调成一样是因为不让 myeclipse 频繁的换内存区域大小
注意:XX:MaxPermSize 和 Xmx 的大小之和不能超过你的电脑内存大小!
--------------------------------------------------------------------------------
二. 去除不需要加载的模块
一个系统20%的功能往往能够满足80%的需求,MyEclipse也不例外,我们在大多数时候只需要20%的系统功能,所以可以将一些不使用的模块禁止加载启动。通过Windows - Preferences打开配置窗口,依次选择左侧的General - Startup and Shutdown,这个时候在右侧就显示出了Eclipse启动时加载的模块,可以根据自己的实际情况去除一些模块。
windows–>perferences–>general–>startup and shutdown
关掉没用的启动项:
怎样才能知道哪些启动项有用呢?我现在把我知道的启动项用处说一下,还有很多不懂的,希望大家懂的回复在下面啊:
WTP :一个跟myeclipse差不多的东西,主要差别是 WTP 是免费的,如果使用myeclipse,这个可以取消
Derby:一种保存成 jar 形式的数据库,我没用到,取消
一大排以 MyEclipseEASIE 打头的启动项:myeclipse 支持的服务器,只选自己用的,其他取消,比如我只选了tomcat

三. 取消MyEclipse在启动时自动验证项目配置文件
默认情况下MyEclipse在启动的时候会自动验证每个项目的配置文件,这是一个非常耗时的过程,可以在Preferences窗口依次选择 MyEclipse - Validation,然后在右侧的Validator列表中只保留 Manual 项就可以了。如果需要验证的时候只需要选中文件,然后右键选择 MyEclipse - Run Validation就可以了。
windows–>perferences–>myeclipse–>validation
把 除了manual 下面的全部点掉,build下只留 classpath dependency Validator
手工验证方法:
在要验证的文件上,单击鼠标右键–>myeclipse–>run validation

四、myeclipse 打开 jsp 的默认编辑器不好,会同时打开预览
windows–>perferences–>general–>editors->file associations
把默认改成 MyEclipse JSP Editor

五、MyEclipse的“自作聪明”和访问网络上的API Doc,进行下列设置即可有效缓解之。
最简单的当然是直接不联网,但是因为需要找资料等我们得联网,总不能拔来拔去的吧。

1.Window-->preferences 输入Library Sets。我用的JavaEE5.0。选JavaEE5.0

2.打开每个jar包点Javadoc location 选择Edit。
你看到的那个地址是连接sun官方的API的地址,这也是假死的原因。
在弹出来的选择框内的Javadoc location path:填入你API的地址。没有地址的话可以直接remove。

3.这样还不行下一步输入 Installed JREs 然后选择jres点Edit:
同理分别选择每一个jar包点击右边Javadoc Location remove掉。
展开阅读全文

Oracle816数据库运行太慢怎么办?急!

12-21

我的服务器是IBM3650 ,4个志强双核CPU,4G内存,windows 2000 server,现在oracle用户进程大概有800个,每天上午在访问高峰时系统运行很慢,怎么办? rnrninit.ini文件内容如下:rnrndb_name = "oracle"rninstance_name = orclrnservice_names = oraclerndb_files = 1024 # INITIALrn# db_files = 80 # SMALLrn# db_files = 400 # MEDIUMrn# db_files = 1500 # LARGErncontrol_files = ("D:\Oracle\oradata\oracle\control01.ctl", "D:\Oracle\oradata\oracle\control02.ctl", "D:\Oracle\oradata\oracle\control03.ctl")rnopen_cursors = 100rnmax_enabled_roles = 100rndb_file_multiblock_read_count = 8 # INITIALrn# db_file_multiblock_read_count = 8 # SMALLrn# db_file_multiblock_read_count = 16 # MEDIUMrn# db_file_multiblock_read_count = 32 # LARGErndb_block_buffers = 2048 # INITIALrn# db_block_buffers = 100 # SMALLrn# db_block_buffers = 550 # MEDIUMrn# db_block_buffers = 3200 # LARGErnshared_pool_size = 209715200 # INITIALrn# shared_pool_size = 3500000 # SMALLrn# shared_pool_size = 5000000 # MEDIUMrn# shared_pool_size = 9000000 # LARGErnlarge_pool_size = 31457280rnjava_pool_size = 20971520rnlog_checkpoint_interval = 10000rnlog_checkpoint_timeout = 1800rnrnprocesses = 800 # INITIALrn# processes = 50 # SMALLrn# processes = 100 # MEDIUMrn# processes = 200 # LARGErnrnparallel_max_servers = 5 # SMALLrn# parallel_max_servers = 4 x (number of CPUs) # MEDIUMrn# parallel_max_servers = 4 x (number of CPUs) # LARGErnrnlog_buffer = 3276800 # INITIALrn# log_buffer = 32768 # SMALLrn# log_buffer = 32768 # MEDIUMrn# log_buffer = 163840 # LARGErnrn#audit_trail = true # if you want auditingrn#timed_statistics = true # if you want timed statisticsrnmax_dump_file_size = 10240 # limit trace file size to 5M eachrnrn# Uncommenting the line below will cause automatic archiving if archiving hasrn# been enabled using ALTER DATABASE ARCHIVELOG.rn#log_archive_start = truern#log_archive_dest_1 = "location=D:\Oracle\oradata\oracle\archive"rn#log_archive_format = %%ORACLE_SID%%T%TS%S.ARCrnlog_archive_start = truernlog_archive_dest= "D:\Oracle\oradata\oracle\archive"rnlog_archive_format = %%ORACLE_SID%%T%TS%S.ARCrnrn# If using private rollback segments, place lines of the followingrn# form in each of your instance-specific init.ora files:rn#rollback_segments = ( RBS0, RBS1, RBS2, RBS3, RBS4, RBS5, RBS6 )rnrn# If using public rollback segments, define how manyrn# rollback segments each instance will pick up, using the formularn# # of rollback segments = transactions / transactions_per_rollback_segmentrn# In this example each instance will grab 40/5 = 8rn# transactions = 40rn# transactions_per_rollback_segment = 5rnrn# Global Naming -- enforce that a dblink has same name as the db it connects tornglobal_names = truernrn# Edit and uncomment the following line to provide the suffix that will bern# appended to the db_name parameter (separated with a dot) and stored as thern# global database name when a database is created. If your site usesrn# Internet Domain names for e-mail, then the part of your e-mail address afterrn# the '@' is a good candidate for this parameter value.rn# db_domain = us.acme.com # global database name is db_name.db_domainrnrn# Uncomment the following line if you wish to enable the Oracle Trace productrn# to trace server activity. This enables scheduling of server collectionsrn# from the Oracle Enterprise Manager Console.rn# Also, if the oracle_trace_collection_name parameter is non-null,rn# every session will write to the named collection, as well as enabling yourn# to schedule future collections from the console.rn# oracle_trace_enable = truernrnoracle_trace_collection_name = ""rn# define directories to store trace and alert filesrnbackground_dump_dest = D:\Oracle\admin\oracle\bdumprn#Uncomment this parameter to enable resource management for your database.rn#The SYSTEM_PLAN is provided by default with the database.rn#Change the plan name if you have created your own resource plan.# resource_manager_plan = system_planrnuser_dump_dest = D:\Oracle\admin\oracle\udumprnrndb_block_size = 8192rnrnremote_login_passwordfile = exclusivernrnos_authent_prefix = ""rnrn# The following parameters are needed for the Advanced Replication Optionrnjob_queue_processes = 4rnjob_queue_interval = 10rnopen_links = 4rnrndistributed_transactions = 500rnmts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"rn# Uncomment the following line when your listener is configured for SSLrn# (listener.ora and sqlnet.ora)rn# mts_dispatchers = "(PROTOCOL=TCPS)(PRE=oracle.aurora.server.SGiopServer)"rnrncompatible = 8.1.0rnsort_area_size = 655360rnsort_area_retained_size = 65536 论坛

没有更多推荐了,返回首页