java
mangmang2012
这个作者很懒,什么都没留下…
展开
-
指定visualvm启动JDK
visualvm.exe --jdkhome "JDK1.6_HOME" -XX:+PerfBypassFileSystemCheck原创 2011-12-29 10:32:55 · 913 阅读 · 0 评论 -
OQL
select objectid(o) from com.szgmt.gcenter.service.impl.ActiveTestHandlerImpl o 1977462952 select map(heap.findObject(1977462952).validCache, function tally(obj) {原创 2015-04-13 23:31:33 · 574 阅读 · 0 评论 -
查看java class版本
使用DJ JAVA Decompler在DJ Java Decompiler的菜单中View->class version info,就会弹出对话框如: Major Version: 49 Minor Version: 0 使用JAVAP(JDK自带的工具原创 2011-09-26 15:25:22 · 2271 阅读 · 0 评论 -
Display XML in a javadoc
Let's say you have a comment like this/** * To use this class use this XML * * * foo * bar * * */The XML will not be visible since it will embedded in the HTML as tag and not as转载 2014-08-02 09:08:19 · 852 阅读 · 0 评论 -
how to get Class of primitive datatypes array . Class.forName(int[]) throws exception
[B for byte array[I for int array[F for float array etc works fine转载 2014-07-28 11:36:12 · 642 阅读 · 0 评论 -
字符编码笔记:ASCII,Unicode和UTF-8
http://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.html转载 2014-04-24 23:08:09 · 540 阅读 · 0 评论 -
Howto let the SAX parser determine the encoding from the xml declaration?
Input Sources and EncodingsThe XML specification requires that an XML document either have a prologue that specifies its encoding, or be encoded in UTF-8. But in this example I used a Java String,转载 2014-04-25 11:11:53 · 689 阅读 · 0 评论 -
深入分析 Java 中的中文编码问题
http://www.ibm.com/developerworks/cn/java/j-lo-chinesecoding/转载 2014-04-24 23:08:32 · 441 阅读 · 0 评论 -
理解 JVM 如何使用 Windows 和 Linux 上的本机内存
Java 堆(每个 Java 对象在其中分配)是您在编写 Java 应用程序时使用最频繁的内存区域。JVM 设计用于将我们与主机的特性隔离,所以将内存当作堆来考虑再正常不过了。您一定遇到过 Java 堆 OutOfMemoryError ,它可能是由于对象泄漏造成的,也可能是因为堆的大小不足以存储所有数据,您也可能了解这些场景的一些调试技巧。但是随着您的 Java 应用程序处理越来越多的数据和越来转载 2013-09-25 23:10:41 · 873 阅读 · 0 评论 -
jps jmap jstack
jps获取java进程的pidjmap -dump:file=heap.dump.hprof heap dumpjmap -dump:live,file=heap.dump.hprof only the live objects in the heap are dumpedjstack > thrad.dump.tdumpthrad du原创 2012-10-23 16:13:41 · 874 阅读 · 0 评论 -
jstack提示“存储空间不足,无法处理此命令”
Jstack only allows you to connect to JVM's running in the same user context. Many people use a service wrapper to start their products: this puts the JVM in the Local System Account user context. Si转载 2012-12-30 13:30:06 · 3261 阅读 · 0 评论 -
模型修改注意事项
新增属性要为包装类型值不能为null的属性,定义设置默认值,set方法的参数不为null时才对属性的值做更新原创 2012-08-23 11:17:55 · 391 阅读 · 0 评论 -
JavaBean 转换为xml的三种方式比较
一、使用XStream包XStream生成的xml文件简洁,需要依赖第三方类库XStream.jar,不过使用 XStream 序列化的类不需要实现Serializable 接口。XStream 有三个突出的特点: 1、XStream 不关心序列化/逆序列化的类的字段的可见性。 2、序列化/逆序列化类的字段不需要 getter 和 setter 方法。 3、序列化转载 2012-08-06 17:37:43 · 718 阅读 · 0 评论 -
XML序列化对象时出现中文乱码
public static String ToXmlText(Object obj)throws Exception { ByteArrayOutputStream bos= new ByteArrayOutputStream(); XMLEncoder encoder = new XMLEncoder(bos); encoder.writeObject(obj转载 2012-08-06 17:36:54 · 5491 阅读 · 0 评论 -
Running CMD.EXE as Local System
E:\Documents and Settings\Adi>sc create testsvc binpath= "cmd /K start" type= own type= interact[SC] CreateService SUCCESS E:\Documents and Settings\Adi>sc start testsvc[SC] StartService FAILE转载 2012-07-02 19:21:30 · 1020 阅读 · 0 评论 -
OQL资料汇总
visualvm oql查询https://www.cnblogs.com/lmjk/articles/7478154.htmljhat中的OQL(对象查询语言)https://www.cnblogs.com/ceshi2016/p/6070566.html虚拟机学习系列 - 附 - OQL(对象查询语言)http://blog.csdn.net/su1216/article/details/77...原创 2018-03-20 14:44:20 · 297 阅读 · 0 评论