`
xumingyong
  • 浏览: 176158 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
Nginx介绍 Nginx发音为[engine x],是由俄罗斯人Igor Sysoev建立的项目,基于BSD许可。是一款轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器。 据说他当初是F5的成员之一,英文主页:http://nginx.net 。俄罗斯的一些大网站已经使用它超过两年多了, 一直表现不凡,相信想了解nginx的朋友都读过阿叶大哥的利用nginx实现负载均衡的文章。    目前中国大陆使用Nginx网站用户有:新浪 、网易 、腾讯 。      一.PHP(Fastcgi)编译安装 [root@att ph ...
当你net_adm:ping(Node)的时候发生了什么? 这个涉及到很复杂的流程。让我为你解刨:这个流程很长而且在erlang代码和c代码里面窜来窜去,重要的点 我用红字标注 请各位耐心。1. net_adm.erl:ping(Node) when is_atom(Node) ->    case catch gen:call({net_kernel, Node},            '$gen_call',            {is_auth, node()},            infinity) of    {ok, yes} -> pong;    ...
正常情况下 当erlang进程发生错误没有catch的时候 emulator就会自动产生erl_crash.dump,来提供crash的时候的emulator最详细的情况,类似于unix的core dump. 其中下边几个env变量控制dump产生的行为: ERL_CRASH_DUMP If the emulator needs to write a crash dump, the value of this variable will be the file name of the crash dump file. If the variable is not set, the name o ...
Supervision Trees and Ports in Erlang 08:31PM Sep 03, 2007 in category Erlang by David King Erlang provides a whole lot of infrastructure for doing tasks commonly associated with building giant fault-tolerant systems. But what about when you have to talk to an external non-Erlang program? Can we make ...
引用 1> percept:profile("test.dat", {tbray9a,start,[]}, [procs]). Starting profiling. 8900    : 2006/09/29/Dynamic-IDE 2000    : 2006/07/28/Open-Data 1300    : 2003/07/25/NotGaming 800     : 2003/09/18/NXML 800     : 2003/10/16/Debbie 800     : 2006/01/31/Data-Protection 700     : 2003/06/ ...
> inet:i(). Port Module   Recv  Sent   Owner    Local Address      Foreign Address     State     7    inet_tcp 0     0      <0.20.0> *:13660            *:*                 ACCEPTING 9    inet_tcp 4     16     <0.18.0> localhost:48084    localhost:epmd      CONNECTED 97   ine ...
otp_src_R11B-5\lib\erl_interface\src\prog\erl_call.c 是个不错的工具, 就是ei的前端能够通过cnode给erlang的后端发各种请求。  where: -a  apply(Mod,Fun,Args) (e.g -a 'erlang length [[a,b,c]]'         -c  cookie string; by default read from ~/.erlang.cookie         -d  direct Erlang output to ~/.erl_call.out.<nodename>        ...
命令:   >io:format("~s~n", [binary_to_list(erlang:info(info))]).   =memory total: 219521173 processes: 718806 processes_used: 713510 system: 218802367 atom: 347085 atom_used: 338851 binary: 13159 code: 2951013 ets: 182152 =hash_table:atom_tab size: 6421 used: 4522 objs ...
beam 模拟器有3种 1.  beam                         默认的2.  beam.smp               支持多处理器的3.  beam.hybrid            支持混合堆的 我们运行erl的时候 在linux下实际运行的是shell脚本 #!/bin/sh ROOTDIR=/usr/local/lib/erlang BINDIR=$ROOTDIR/erts-5.5.5/bin EMU=beam PROGNAME=`echo $0 | sed 's/.*\///'` export EMU export ROOTDIR export BIND ...
  参数: 描述: 取值范围: 缺省值 --------------------------   Authenticate 只用于Client/Server 模式,当Server 端该值设置为1 时,只有提供了UID 和Password 的客户端连接才能访问该DSN ,如果Access Control 已经设置,则Authenticate 必须设置为1 。本地访问,即直连方式则忽略该参数。
1. working folder     > pwd(). 2. 变量首写字母必须[大写]。 3. 原子以[小写]字母开头,它只是一个名字,不是变量。 4. 元组{inch,2},大小固定 5. 列表     [{moscow, {c, -10}}, {cape_town, {f, 70}}]     [First|Last]=[1,2,3,4,5]         First=1         Last=[2,3,4,5] L1 = [madrid | T1]. 6. 没有字符串,可用字符列表来表示,     5> [97,98,99].     "abc&q ...
1. downlod erlang snippets. http://www.joeandmotorboat.com/files/snippets-archive.tar.gz unzip it, the unziped filename is erlang.xml 2. in gedit, select [edit->preference->plugins->snippets] 3. depress [configure plugin] button. 4. in the opened window, select erlang in left box, then p ...
1.没安装Eclipse的,先下载Eclipse(别告诉我你还没有安装java)。    现阶段最新版是3.4.1的ganymede版,根据各自的需求,下载相应发行版。    http://www.eclipse.org/downloads/ 2.下载安装Erlang    现阶段最新版为5.6.5 R12B-5版。    http://www.erlang.org/download.html 3.安装Erlide插件    打开Eclipse,在菜单上依次选择[help]->[software updates...],单击[available software]tab,点击[ ...
以下方法在Ubuntu中实验成功。   # apt-get install build-essential erlang libicu38 libicu-dev libmozjs-dev # ./configure # make # make install
结论: TT客户端通过直接连接方式,直接通过共享内存交换信息,速度是通过tcp/ip的方式的25倍。 如果打开log和checkpoint,性能基本下降1倍。 如果设置autocommit off (缺省是每条语句执行完成,自动commit),性能在提高约一倍!!! 测试配置 ============================== 1.通过直接内存访问方式连接,无log,无checkpoint 配置如下 sys.odbc.ini PermSize=64 TempSize=16 Logging=0 DurableCommits=0 CkptFrequency=0 CkptLogVo ...
Global site tag (gtag.js) - Google Analytics