jubincn

导航

上一页 1 2 3 4 5 6 7 8 ··· 17 下一页

2013年8月15日 #

The connection to adb is down and a sever error has occured的解决

摘要: 1. 打开任务管理器,关掉豌豆夹等手机助手2. 打开命令行,切换到adb所在目录,如:C:\Users\Jubincn\Downloads\adt-bundle-windows-x86_64-20130729\sdk\platform-tools3. 输入这两个命令:adb kill-serveradb start-server若能成功启动,则这个问题应该消失了。有人说要重启Eclipse,我之前重启过,这次没有重启,也成功了。所以如果到这里还没成功,那重启Eclipse试试吧。产生原因:猜测:adb的端口被占用,因此无法连接。 阅读全文

posted @ 2013-08-15 14:33 jubincn 阅读(182) 评论(0) 推荐(0)

Eclipse与github整合完整版

摘要: 最近朋友都推荐使用github管理自己的项目,而且免费用户可以有5个仓库,恰好我也想了解下git,借此机会学习一下.github官方指南使用独立第三方git工具来进行版本控制,并不借助于eclipse,但我觉得eclipse肯定也有插件来解决这类问题,就像subclipse一样.安装egitegit目前应该是eclipse上最好的git工具了,如果你使用的是eclipse Indigo,你可以直接点击help->eclipse marketplace,然后在search tab页上find “egit”,找到后直接install.如果你使用的不是Indigo,你可以从这里下载.githu 阅读全文

posted @ 2013-08-15 08:40 jubincn 阅读(310) 评论(0) 推荐(0)

GIT命令整理

摘要: 转自:http://www.xbc.me/git-commands/最近在公司的服务器上安装了Git Sever,开始从SVN转向到Git了,整理了一些在Git常用的命令。取得Git仓库初始化一个版本仓库git initClone远程版本库git clone git@xbc.me:wordpress.git添加远程版本库origin,语法为 git remote add [shortname] [url]git remote add origin git@xbc.me:wordpress.git查看远程仓库git remote -v提交你的修改添加当前修改的文件到暂存区git add .如果你 阅读全文

posted @ 2013-08-15 08:26 jubincn 阅读(165) 评论(0) 推荐(0)

2013年8月5日 #

Java堆初始大小的建议值

摘要: 摘自:《Java Performance》第三章Initial Heap Space Size ConfigurationThis section describes how to use live data size calculations to determine an initialJava heap size. Figure 7-3 shows the fields that identify an application’s live datasize. It is wise to compute an average of the Java heap occupancy and 阅读全文

posted @ 2013-08-05 19:17 jubincn 阅读(1115) 评论(0) 推荐(0)

为什么在进行Full GC之前最好进行一次Minor GC

摘要: 摘自:《Java Performance》第三章为什么在进行Full GC之前最好进行一次Minor GC?Garbagecollecting the young generation space prior to garbage collecting the old generationspace usually results in less work for the garbage collector and more objects beinggarbage collected since objects in the old generation space may be holdi 阅读全文

posted @ 2013-08-05 19:06 jubincn 阅读(336) 评论(0) 推荐(2)

JVM中存储类信息的三个表格

摘要: 摘自:《Java Performance》第三章Internal Class Loading DataThe HotSpot VM maintains three hash tables to track class loading. TheSystemDictionary contains loaded classes, which maps a class name/class loader pair toa klassOop. The SystemDictionary contains both class name/initiating loaderpairs and class na 阅读全文

posted @ 2013-08-05 18:52 jubincn 阅读(207) 评论(0) 推荐(0)

JVM Class Loading过程

摘要: 转自:《Java Performance》第三章VM Class LoadingThe Hotspot VM supports class loading as defined by the Java Language Specification,Third Edition, [2] the Java Virtual Machine Specification, Second Edition,[1] and as amended by the updated Java Virtual Machine Specification,Chapter 5, Loading, Linking and I 阅读全文

posted @ 2013-08-05 18:12 jubincn 阅读(310) 评论(0) 推荐(0)

HotSpotVM创建过程(JNI_CreateJavaVM)详解

摘要: 来自:《Java Performance》第3章 JVM OverviewThe HotSpot VM’s implementation of the JNI_CreateJavaVM method performs thefollowing sequence of operations when it is called during the launch of the HotSpot VM.1. Ensure no two threads call this method at the same time and only one HotSpot VMinstance is created 阅读全文

posted @ 2013-08-05 16:18 jubincn 阅读(356) 评论(0) 推荐(0)

2013年7月23日 #

Compare and Swap(CAS)

摘要: CAS(Compare and Swap)是个原子操作。拿到一个新值后,CAS将其与内存中的值进行比较,若内存中的值和这个值不一样,则将这个值写入内存,否则,不做操作。在Java的java.util.concurrent.atomic包中对CAS的实现是通过synchronized关键字实现的: public final synchronized boolean compareAndSet(long expect, long update) { if (value == expect) { ... 阅读全文

posted @ 2013-07-23 18:24 jubincn 阅读(239) 评论(0) 推荐(0)

Java中自动装箱代码初探

摘要: 《深入理解Java虚拟机》中讲语法糖时,提到了下面这个例子(不是原文中的例子,我自己改过):public class AutoBoxingTest { /** * @param args */ public static void main(String[] args) { Integer a = 1; Integer b = 2; Integer c = 127; Integer d = 127; Integer e = 3; Integer f = 3; Long g = 3L; System.out.println(c == d); S... 阅读全文

posted @ 2013-07-23 14:40 jubincn 阅读(169) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 17 下一页