摘要: 转载自http://www.javacodegeeks.com/2011/04/erlang-vs-java-memory-architecture.htmlI read a really, really interesting article on memory management strategies for theErlangVM. It was written as athesisbyJesper WilhelmssonI thought it might be nice to discuss the differences betweenErlang's memory se 阅读全文
posted @ 2011-04-13 18:52 Dikang Gu 阅读(434) 评论(1) 推荐(0) 编辑
摘要: Loop devices============Increasing the number of loop devices-------------------------------------If you see "mount: could not find any free loop device" you haveto increase the number of loop devices by adding the followingto /etc/modprobe.conf on a 2.6 kernel (or /etc/modules.conf ona 2.4 kernel). 阅读全文
posted @ 2010-12-22 14:18 Dikang Gu 阅读(439) 评论(0) 推荐(0) 编辑
摘要: To solve the problem with ObjectInputStream.readObject():java.io.StreamCorruptedException:invalid type code: ACAppendableObjectOutputStream 阅读全文
posted @ 2010-10-08 21:07 Dikang Gu 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 1. use the tomcat manager.打开%tomcat_home%\conf\tomcat-users.xml察看也可以在里边增加和删除用户名和密码 阅读全文
posted @ 2010-10-04 15:29 Dikang Gu 阅读(98) 评论(0) 推荐(0) 编辑
摘要: vi /etc/profileexport JAVA_HOME=/usr/lib/jvm/javaexport CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/libexport PATH=$JAVA_HOME/lib:$JAVA_HOME/jre/bin:$PATH:$HOME/binexport HADOOP_HOME=/opt/hadoo... 阅读全文
posted @ 2010-10-01 20:31 Dikang Gu 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1. Overview.Oauth provides a method for clients to access a protected resource onbehalf of a resource owner. +--------+ +---------------+ | |--(A)-- Authorization Request --->| Resource | | | ... 阅读全文
posted @ 2010-09-28 21:56 Dikang Gu 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1. Start the cassandra:a). in conf/storage-conf.xml,make sure that the paths exist forCommitLogDirectoryandDataFileDirectories.b).inconf/log4j.propertiesand make sure that directories exist for the co... 阅读全文
posted @ 2010-09-26 11:05 Dikang Gu 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 大数据量,海量数据 处理方法总结来源: 葛林华的日志大数据量的问题是很多面试笔试中经常出现的问题,比如baidu google 腾讯 这样的一些涉及到海量数据的公司经常会问到。 下面的方法是我对海量数据的处理方法进行了一个一般性的总结,当然这些方法可能并不能完全覆盖所有的问题,但是这样的一些方法也基本可以处理绝大多数遇到的问题。下面的一些问题基本直接来源于公司的面试笔试题目,方法不一定最优,如果你... 阅读全文
posted @ 2010-09-21 19:58 Dikang Gu 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1. if you want to see the detailed error message on the console, instead of reading it from the surefire files, you can use the maven-surefire-plugin:<plugin>   <groupId>org.apache.maven.... 阅读全文
posted @ 2010-09-10 14:28 Dikang Gu 阅读(151) 评论(0) 推荐(0) 编辑