Java堆内存参数调优 -Xms -Xmx 参数
Java堆内存参数调优 有的性能调优文章中建议-Xms和-Xmx参数调整到相同值是考虑到物理Server上主要只有一个Java应用,没必要初始堆比较小慢慢调整堆大小。 相反不适合的情况是如果一台物理Server上安装有多个Java 应用的时候,JVM的这两个参数应该不同,这个各个JVM动...
单点登陆 - CAS
单点登陆 - CAS CAS is an authentication system originally created by Yale University to provide a trusted way for an application to authenticate a use...
lazy loading实现
在进行O-R mapping时经常会碰到加载a graph of objects. 这是lazy loading应用的场景。如果不想把所有数据库中关联的表对象都一次性load到内存,可以参考下面的解决方法。 lazy initialization简单来说就是使用前判断目标对象是否为null,是...
架构 - 非功能性需求
架构设计中考量的是Non Functional factors Response Time处理一次请求的时间或者平均时间 Throughput一般以 hits per second or transactions per second 度量 ScalabilityScale up...
OpenID and OAuth
OpenID and OAuth From http://cakebaker.42dh.com/2008/04/01/openid-versus-oauth-from-the-users-perspective/ In this article I want to show the diff...
Class Loader
Java ClassLoader 调用自定义ClassLoader1234567891011121314151617public class ClassLoaderTest { public static void main(String[] args) { ...
ClassNotFoundException and NoClassDefFoundError
ClassNotFoundException and NoClassDefFoundError From: http://jroller.com/sjivan/entry/difference_between_classnotfoundexception_and_noclassdeffound...
Javascript data types and values
Javascript type<! –more–> +Five basic data types number, The special ones are NaN, Infinity, and Infinity. NaN (Not a Number) is actually of...
How to easily obtain the stack trace dump of a Java process
How to easily obtain the stack trace dump of a Java process<! –more–> The simplest and most direct way to go crazy is to find the ID of this ...
构建高性能Web站点读后
构建高性能Web站点读后 数据库层主要查询建索引,一个是全表扫描,一个是常量时间。通过explain 查询语句就知道了 通过memcached分布式缓存减少数据库或者磁盘文件IO,原则是把数据缓存到离使用者最近的地方 写操作也可以缓存,如果不要求实时更新到数据库的话。比如把某个页...