随笔分类 -  技术积累

积累一些技术和实现方法
摘要:function HashMap() { var length = 0; var obj = new Object(); this.isEmpty = function () { return length == 0; }; this.containsKey = function (key) { r 阅读全文
posted @ 2017-06-21 10:51 mylingc 阅读(1662) 评论(0) 推荐(0)
摘要:1.axis1 作为web service 客户端时,调用web service 服务端的通用代码String url ="http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx";Serviceservice =newService();//创建客户端调用webservice的代理对象Callcall = (Call) service.createCall();//创建一个调用对象,代表对web service 的一次调用call.setTargetEndpointAddress(newjava.net.U 阅读全文
posted @ 2014-03-27 21:52 mylingc 阅读(2488) 评论(0) 推荐(0)
摘要:运行在Linux系统上的Java程序运行了一段时间后出现"Too many open files"的异常情况。这种情况常见于高并发访问文件系统,多线程网络连接等场景。程序经常访问的文件、socket在Linux中都是文件file,系统需要记录每个当前访问file的name、location、access authority等相关信息,这样的一个实体被称为file entry。“open files table”(图中橙色标识)存储这些file entry,以数组的形式线性管理。文件描述符(file descriptor)作为进程到open files table的指针,也就 阅读全文
posted @ 2013-05-24 18:05 mylingc 阅读(4931) 评论(0) 推荐(0)