建议看看java -help,可以使用参数来重新设定jvm所使用的内存的大小的,使用-Xmx700m等来设置。个人意见,仅供参考。
解决方案 »
- 为什么抽象类实现接口时,抽象类中的方法必须是public?请看下面的代码,谁可以给出正确解释
- Socket和ServerSocket之间的mp3文件传输
- 求java.lang.OutOfMemoryError: Java heap space解决方案?
- array 問題一問
- 请问大家用什么开源包实现FTP文件管理的
- 怎样把URI的参数转换成汉字
- 关于prepareStatement类的问题!!
- 求各位大神帮忙。。。
- 爽啊,jb8在www.borland.com已经可以下载,大家快去啊!!!!!!!!!!!!
- 求教:java 的 socket 只能连接一次?
- jb6-----"unknown license file format" ?????
- JDBC效率问题,才2,3张表连接查询就慢得受不了?高分求解......
CapacityIncrement="1"
DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="2"
<< MaxCapacity="10">>加大点
Name="OracleThinPool"
Properties="user=scott;password=tiger;dll=ocijdbc8;protocol=thin"
Targets="myserver"
或是你们在写程序时,没有关闭ResultSet 吧
我找不到呀
-Xmixed mixed mode execution (default)
-Xint interpreted mode execution only
-Xbootclasspath:<directories and zip/jar files separated by ;>
set search path for bootstrap classes and reso
ces
-Xbootclasspath/a:<directories and zip/jar files separated by ;>
append to end of bootstrap class path
-Xbootclasspath/p:<directories and zip/jar files separated by ;>
prepend in front of bootstrap class path
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection
-Xloggc:<file> log GC status to a file with time stamps
-Xbatch disable background compilation
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
-Xss<size> set java thread stack size
-Xprof output cpu profiling data
-Xrunhprof[:help]|[:<option>=<value>, ...]
perform JVMPI heap, cpu, or monitor profiling
-Xdebug enable remote debugging
-Xfuture enable strictest checks, anticipating future d
ault
-Xrs reduce use of OS signals by Java/VM (see docum
tation)
-XX:MaxPermSize=256m或512m不就得了。不然把你的启动文件贴出来,我加给你
ResultSet一定要关闭吗?当用户关闭浏览器时不是应该自动关闭的吗?
有些不对的哦。请确认你的数据库连接是不是关掉了。如果是,那么相关的Statement和ResultSet都会关掉。肯定是你的Connection没有关掉。