![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
文章平均质量分 53
nsthing
北上广深漂了七年的老司机
展开
-
jvm参数设置
堆大小设置 JVM 中最大堆大小有三方面限制:相关操作系统的数据模型(32-bt还是64-bit)限制;系统的可用虚拟内存限制;系统的可用物理内存限制。32位系统下,一般限制在1.5G~2G;64为操作系统对内存无限制。我在Windows Server 2003 系统,3.5G物理内存,JDK5.0下测试,最大可设置为1478m。 典型设置: java -Xmx3550m -Xms355转载 2015-03-14 23:47:11 · 452 阅读 · 0 评论 -
swing绘图
JFrame使用新new对象速度会慢的卡死。 使用this就可解决问题。需要注意构造函数。原创 2015-03-07 20:34:53 · 400 阅读 · 0 评论 -
图像分割
public class slice { static int width=0, height=0; static int startwidth=0, startheight=0; public static void main(String args[]) { Iterator readers = ImageIO.getImageReadersByFormatName("jpg原创 2015-03-07 20:35:31 · 571 阅读 · 0 评论