一般来说 nginx 配置文件中对优化比较有作用的为以下几项: worker_processes 8; nginx 进程数,建议按照 cpu 数目来指定,一般为它的倍数。 worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 ...
分类:
其他好文 时间:
2016-05-20 11:37:54
阅读次数:
204
#定义Nginx运行的用户和用户组user www www; #nginx进程数,建议设置为等于CPU总核心数。worker_processes 8; #全局错误日志定义类型,[ debug | info | notice | warn | error | crit ]error_log /var/ ...
分类:
其他好文 时间:
2016-05-20 08:36:40
阅读次数:
219
Nginx默认配置文件名为nginx.conf。 Nginx配置文件主要由3大部分构成,即main,events,http。其中main配置段为全局通用配置,events段为网络I/O模型及连接上限,http为HTTP服务设定。 - main worker_processes 2:在配置文件main ...
分类:
其他好文 时间:
2016-05-19 00:01:57
阅读次数:
470
当前系统信号量限制:#ipcs-ls——SemaphoreLimits——–maxnumberofarrays=128maxsemaphoresperarray=250maxsemaphoressystemwide=32000maxopspersemopcall=100SEMMSL含义:每个信号量set中信号量最大个数设置:最小250;对于processes参数设置较大的系统建议设置为processes..
分类:
系统相关 时间:
2016-05-18 10:56:35
阅读次数:
919
I.Pattern Recognition System Two processes Recognition Process: data acquisition and pretreatment→feature generation→feature extraction and selection→ ...
分类:
其他好文 时间:
2016-05-18 00:26:44
阅读次数:
132
#运行用户 #user nobody; #启动进程,通常设置成和cpu的数量相等或者2倍于cpu的个数(具体结合cpu和内存)。默认为1 worker_processes 1; #全局的错误日志和日志级别[ debug | info | notice | warn | error | crit ] ...
分类:
其他好文 时间:
2016-05-17 17:36:34
阅读次数:
209
一、RAC后台进程 LMON:LOCK Monitor Processes 也被称为Global enqueue service monitor 监控整个集群状况,维护GCS的内存结构 监控非正常终止的进程和实例 当实例离开和加入集群时,锁和资源的重新配置 管理全局的锁和资源 监控全局的锁资源、处理 ...
分类:
数据库 时间:
2016-05-16 17:17:18
阅读次数:
240
前提:
①组件(Components):Activities、Services、Content Providers、Broadcast Receivers.
②进程(Processes)、线程(Threads)
当一个应用程序组件启动,且没有其他组件正在运行时,安卓系统会为这个应用启动一个新的进程和一个干活的单线程。默认情况下,同一应用程序的所有组件运行在同一进程和线程(即,主线程)...
分类:
其他好文 时间:
2016-05-12 21:55:09
阅读次数:
154
ORA-12518: 错误 客户端连接不上解决方案:
第一步:process和session改大
检查process和session
a)本机使用连接到oracle,查看process进程数:select count(*) from v$process; –取得数据库目前的进程数。select value from v$parameter where name = ‘processes’;...
分类:
其他好文 时间:
2016-05-12 17:47:13
阅读次数:
200
#include
#include
//Can only be used in independent situation;
//#define getmem(type) (type*)malloc(sizeof(type))
#define buffersize 5
int processnum=0;//the num of processes
struct pcb { /* 定义进...
分类:
系统相关 时间:
2016-05-12 11:50:42
阅读次数:
229