2014年10月1日
摘要: Java 8 的新特性和改进总览http://www.oschina.net/translate/everything-about-java-8http://www.techempower.com/blog/2013/03/26/everything-about-java-8/http://blog... 阅读全文
posted @ 2014-10-01 23:23 lpthread 阅读(227) 评论(0) 推荐(0) 编辑
  2014年9月26日
摘要: 转自: http://www.csdn.net/article/2013-12-04/2817707-Impala-Big-Data-Engine大数据处理是云计算中非常重要的领域,自Google公司提出MapReduce分布式处理框架以来,以Hadoop为代表的开源软件受到越来越多公司的重视和青睐... 阅读全文
posted @ 2014-09-26 17:46 lpthread 阅读(208) 评论(0) 推荐(0) 编辑
  2014年9月8日
摘要: 存储容量=磁头数×磁道(柱面)数×每道扇区数×每扇区字节数MBR/OBR/FAT/DIR/DATA扩展分区/逻辑分区:扩展分区的概念则比较复杂,也是造成分区和逻辑磁盘混淆的主要原因。由于硬盘仅仅为分区表保留了64个字节的存储空间,而每个分区的参数占据16个字节,故主引导扇区中总计可以存储4个分区的数... 阅读全文
posted @ 2014-09-08 12:21 lpthread 阅读(287) 评论(0) 推荐(0) 编辑
  2014年8月13日
摘要: 首先volatile是java中关键字用于修饰变量,AtomicReference是并发包java.util.concurrent.atomic下的类。首先volatile作用,当一个变量被定义为volatile之后,看做“程度较轻的 synchronized”,具备两个特性:1.保证此变量对所有线... 阅读全文
posted @ 2014-08-13 09:37 lpthread 阅读(4431) 评论(1) 推荐(0) 编辑
  2014年7月9日
摘要: IPv6 have colon character, for example FF:00::EEIf concatenate URL String, IPv6 URL will like:http://FF:00::EE:8888/a/b/cActually we want:http://[FF:0... 阅读全文
posted @ 2014-07-09 16:43 lpthread 阅读(229) 评论(0) 推荐(0) 编辑
  2014年1月8日
摘要: 使用jprofiler远程profile JBoss应用服务器项目中发现JBoss出现内存泄露, 从2G一直涨到3.5G左右开始考虑使用jmap dump出内存来, 在用jhap打开浏览器分析。想到JProfiler可以看类的引用关系, 更容易分析内存泄露, 所以决定使用JProfile。 同时应为JBoss运行在远端的服务器, 所以要使用remote attachment1) 安装JProfiler. In Windows installjprofiler_windows-x64_8_0_2.exe; in Linux, installjprofiler_linux_8_0_2.rpm.2) 阅读全文
posted @ 2014-01-08 09:29 lpthread 阅读(1144) 评论(0) 推荐(0) 编辑
  2013年12月26日
摘要: prepare redhat DVD isorhel-server-6.4-x86_64-dvd.isomountcd /mkdir /mnt/rhelmount -o loop rhel-server-6.4-x86_64-dvd.iso /mnt/rhelcd /etc/yum.repo.dCreate one file with suffix .repo, the content is: [rhel-x86_64-server-6] name=rhel-x86_64-server-6 baseurl=file:///mnt/rhel enabled=1 gpgcheck=1 gpgkey 阅读全文
posted @ 2013-12-26 22:06 lpthread 阅读(272) 评论(0) 推荐(0) 编辑
  2013年12月21日
摘要: 转载自http://www.cnblogs.com/stephen-liu74/一. 特殊文件: /dev/null和/dev/tty Linux系统提供了两个对Shell编程非常有用的特殊文件,/dev/null和/dev/tty。其中/dev/null将会丢掉所有写入它的数据,换句换说,当程序将数据写入到此文件时,会认为它已经成功完成写入数据的操作,但实际上什么事都没有做。如果你需要的是命令的退出状态,而非它的输出,此功能会非常有用,见如下Shell代码: /> vi test_dev_null.sh #!/bin/bash if grep hello TestFile > / 阅读全文
posted @ 2013-12-21 23:11 lpthread 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 1. find find pathname -options [-print -exec -ok] 让我们来看看该命令的参数: pathname find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。 -print find命令将匹配的文件输出到标准输出。 -exec find命令对匹配的文件执行该参数所给出的shell命令。相应命令的形式为'command' {} \;,注意{}和\;之间的空格,同时两个{}之间没有空格, 注意一定有分号结尾。 0) -ok 和-exec的作用相同,只不过以一种更为安全的模式来执行该参数所给出的shell命令,在执行每一 阅读全文
posted @ 2013-12-21 22:23 lpthread 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.cnblogs.com/stephen-liu74/archive/2011/11/04/2228133.html五、BASH SHELL编程:1. 初始化顺序: /etc/profile ( ~/.bash_profile | ~/.bash_login | ~/.profile ) ~/.bashrc2. set -o allexport 当前shell变量对其所有子shell都有效. set +o allexport 当前shell变量对其所有子shell都无效. set -o noclobber 重定向输出时,如果输出文件已经存在则提示输出失败, da.. 阅读全文
posted @ 2013-12-21 21:13 lpthread 阅读(217) 评论(0) 推荐(0) 编辑