java
文章平均质量分 55
jarbee
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
简单地对Unix系统访问
在Unix端布署一RMI应用,使用Runtime.exec(String command)方法实现 InterfaceFile.java [code="java"] public interface Cmd extends Remote { /** * 执行服务器的命令 * * @param command * @return * @throws Remo...原创 2009-05-22 19:59:30 · 147 阅读 · 0 评论 -
通过RMI下载UNIX系统上的文件
[size=large][b]Server端:[/b][/size] 1. 定义远程通讯的接口和与接口相关的类(这里只有RemoteFileInfo.java)。该接口必须继承接口Remote,它里面的方法都要抛出RemoteException异常。 [size=medium]FileManager.java[/size] [code="java"] import java.rmi.Rem...2009-05-22 20:10:24 · 230 阅读 · 0 评论 -
整合Apache与Tomcat
最近一系统需要以Apache+Tomcat的方式部署。经过查阅Apache和Tomcat官网资料(Apache官网 , Tomcat连接其它服务器相关资料 )后终于搞掂。在此记录下整合及部署过程中的一些关键内容。 目前,Apache2.2连接Tomcat的方式有两种:一种是通过Apache自己的mod_proxy模块连接;一种是通过Tomcat自带的mod_jk模块。此次使用mod_...2011-07-10 16:25:27 · 154 阅读 · 0 评论 -
[转]NIO Server程序片断
[u]Introduction[/u] This tutorial is intended to collect together my own experiences using the Java NIO libraries and the dozens of hints, tips, suggestions and caveats that litter the Internet. Wh...原创 2012-03-31 09:12:21 · 195 阅读 · 0 评论 -
[转]NIO Client程序片断
[u]The client[/u] Before getting started it's worth mentioning that the client implementation is going to end up looking a lot like the server implementation we just finished writing. There's going...原创 2012-03-31 09:18:04 · 157 阅读 · 0 评论 -
单线程情况下遍历ArrayList的ConcurrentModificationException的问题
看到一段程序在单线程方式下运行还抛出ConcurrentModificationException,大概看了下是在以for-each方式遍历ArrayList时,循环内部又对集合作修改引起,换种方式遍历即可解决。 所以在使用JDK集合类的Iterator时,还要对其实现原理有大概了解。由于一直都没有了解集合遍历,标记下>< code: [code="java"] @Test ...原创 2013-04-07 17:37:09 · 205 阅读 · 0 评论 -
[转]Analyze Java Thread Dumps
[b]Getting a Thread Dump[/b] We will introduce the three most commonly used methods. Note that there are many other ways to get a thread dump. A thread dump can only show the thread status at the t...原创 2013-01-28 17:24:08 · 321 阅读 · 0 评论 -
些个查问题命令小结
线上查问题的时候有些命令是必备,有必要把一些常用命令总结一下(这类命令和相关参数相当多,只总结自己常用得到的),查找问题一般可以分为系统参数、性能参数、进程、内存、网络、存储、内存和jvm这么几类: [b]系统参数[/b] cat /proc/cpuinfo cpu相关参数 cat /proc/meminfo 内存相关参数 cat /proc/loadavg 负载情况 [b...原创 2013-08-09 14:08:30 · 160 阅读 · 0 评论
分享