RichFaces editor的兼容性问题
今天做OA,用到RichFaces的editor控件,结果不论怎么调整参数就是不显示,最后慢慢排查,发现 myeclipse自动生成的模版中的一句<base href="<%=basePath%>">和这个控件有冲突,去掉这行一切OK. [@more@]
JSF的Sun 1.2实现增加Apache tomahawk实现文件上传
JSF的Sun 1.2实现增加Apache tomahawk实现文件上传(1)启动Myeclipse 6.5,创建新工程,增加JSF支持、Spring支持、Hibernate支持。(2)把tomahawk需要的包tomahawk12-1.1.9.jar commons-fileupload-1.2.1.jar commons-io-1.4.jar commons-logging-1.0.4.jar 拷贝到工程的WebRootWEB-INFlib目录下(3)配置web.xml <?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=&
内核的 shmall 和 shmmax 参数(http://wdicc.com/)
shmall 是全部允许使用的共享内存大小,shmmax 是单个段允许使用的大小。这两个可以设置为内存的 90%。例如 16G 内存,16*1024*1024*1024*90% = 15461882265,shmall 的大小为 15461882265/4k(getconf PAGESIZE可得到) = 3774873。修改 /etc/sysctl.conf。kernel.shmmax=15461882265 kernel.shmall=3774873 kernel.msgmax=65535 kernel.msgmnb=65535 执行 sudo sysctl -p可以使用 ipcs -l 看结果。ipcs -u 可以看到实际使用的情况。------ Shared Memory Limits -------- max number of segments = 4096 max seg size (kbytes) = 15