too many open files
Python错误提示:[Errno24]Toomanyopenfiles的分析与解决
![Python错误提示:[Errno24]Toomanyopenfiles的分析与解决](https://img.taocdn.com/s3/m/0783e29a85868762caaedd3383c4bb4cf6ecb75c.png)
Python错误提⽰:[Errno24]Toomanyopenfiles的分析与解决背景最近在⼯作中发现了⼀个错误,在执⾏多线程扫描脚本的时候频繁出现下⾯这个错误HTTPConnectionPool(host=‘t.tips', port=80): Max retries exceeded with url: /index.php (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f29d4081150>: Failed to establish a new connection: [Errno 24] Too m ⽐较诡异...分析博主⾃⼰⼿上的⼀些⼩项⽬经常需要进⾏多线程的批量扫描来采集数据,像采集数据这种功能当然是线程越多越好了,所以通常情况下我都是使⽤ 3000 个线程进⾏扫描,在确定带宽充⾜,系统硬件配置够⾼的情况下依然会出现上述问题,这就让我想到是不是因为系统的限制问题。
通过搜索引擎我找到了关于系统限制的介绍,执⾏$ ulimit -n1024得到的结果是1024,系统限制为同时打开1024个⽂件,这显然是太少了。
解决这个问题的解决⽅法很简单,直接修改下⾯的⽂件sudo vim /etc/security/limits.conf最这个⽂件的最后添加两⾏代码* soft nofile 10240* hard nofile 10240当然这个数字根据⾃⼰的需要进⾏修改即可,保存后注销重新登录就好了。
总结以上就是这篇⽂章的全部内容了,希望本⽂的内容对⼤家的学习或者⼯作能带来⼀定的帮助,如果有疑问⼤家可以留⾔交流。
Toomanyopenfiles问题解决

Toomanyopenfiles问题解决
项⽬运⾏过程出现如下问题
经查询,找出原因,并进⾏解决
具体原因如下:
too many open files(打开的⽂件过多)是Linux系统中常见的错误,从字⾯意思上看就是说程序打开的⽂件数过多,不过这⾥的files不单是⽂件的意思,
也包括打开的通讯链接(⽐如socket),正在监听的端⼝等等,所以有时候也可以叫做句柄(handle),这个错误通常也可以叫做句柄数超出系统限制。
引起的原因就是进程在某个时刻打开了超过系统限制的⽂件数量以及通讯链接数,通过命令ulimit -a可以查看当前系统设置的最⼤句柄数是多少:
open files那⼀⾏就代表系统⽬前允许单个进程打开的最⼤句柄数,这⾥是1024。
使⽤命令lsof -p 进程id可以查看单个进程所有打开的⽂件详情,使⽤命令lsof -p 进程id | wc -l可以统计进程打开了多少⽂件:
以裸启动的tomcat为例,可以看到它⽬前打开了108个⽂件数,如果⽂件数过多使⽤lsof -p 进程id命令⽆法完全查看的话,可以使⽤lsof -p
进程id > openfiles.log将执⾏结果内容输出到⽇志⽂件中查看。
解决⽅法如下:
1、增⼤允许打开的⽂件数——命令⽅式
ulimit -n 2048
这样就可以把当前⽤户的最⼤允许打开⽂件数量设置为2048了,但这种设置⽅法在重启后会还原为默认值。
ulimit -n命令⾮root⽤户只能设置到4096。
2、增⼤允许打开的⽂件数——修改系统配置⽂件
vim /etc/security/limits.conf
加⼊
* - nofile 8192
来源:。
PASCAL错误对照表

Pascal错误对照表一、Pascal编译错误信息中英文对照表下面列出在编译程序时可能出现的错误,在集成环境下,Turbo Pascal将自动加载源程序并定位于出错处:错误代码及错误信息错误释义error1:Out of memory内存溢出error2:Identifier expected缺标识符error3:Unknown identifier未定义的标识符error4:Duplicate identifier重复定义的标识符error5:Syntax error语法错误error6:Error in real constant实型常量错误error7:Error in integer constant整型常量错误error8:String constant exceeds line字符串常量超过一行error10:Unexpected end of file文件非正常结束error11:Line too long行太长error12:Type identifier expected未定义的类型标识符error13:Too many open files打开文件太多error14:Invalid file name无效的文件名error15:File not found文件未找到error16:Disk full磁盘满error17:Invalid compiler directive无效的编译命令error18:Too many files文件太多error19:Undefined type in pointer def指针定义中未定义类型error20:Variable identifier expected缺变量标识符error21:Error in type类型错误error22:Structure too large结构类型太长error23:Set base type out of range集合基类型越界error24:File components may not be files or objectsfile分量不能是文件或对象error25:Invalid string length无效的字符串长度error26:Type mismatch类型不匹配error27:error27:Invalid subrange base type无效的子界基类型error28:Lower bound greater than upper bound下界超过上界error29:Ordinal type expected缺有序类型error30:Integer constant expected缺整型常量error31:Constant expected缺常量error32:Integer or real constant expected缺整型或实型常量error33:Pointer Type identifier expected缺指针类型标识符error34:Invalid function result type无效的函数结果类型error35:Label identifier expected缺标号标识符error36:BEGIN expected缺BEGINerror37:END expected缺ENDerror38:Integer expression expected缺整型表达式error39:Ordinal expression expected缺有序类型表达式error40:Boolean expression expected缺布尔表达式error41:Operand types do not match操作数类型不匹配error42:Error in expression表达式错误error43:Illegal assignment非法赋值error44:Field identifier expected缺域标识符error45:Object file too large目标文件太大error46:Undefined external未定义的外部过程与函数error47:Invalid object file record无效的OBJ文件格式error48:Code segment too large代码段太长error49:Data segment too large数据段太长error50:DO expected缺DOerror51:Invalid PUBLIC definition无效的PUBLIC定义error52:Invalid EXTRN definition无效的EXTRN定义error53:Too many EXTRN definitions太多的EXTRN定义error54:OF expected缺OFerror55:INTERFACE expected缺INTERFACEerror56:Invalid relocatable reference无效的可重定位引用error57:THEN expected缺THENerror58:TO or DOWNTO expected缺TO或DOWNTOerror59:Undefined forward提前引用未经定义的说明error61:Invalid typecast无效的类型转换error62:Division by zero被零除error63:Invalid file type无效的文件类型error64:Cannot read or write variables of this type不能读写此类型变量error65:Pointer variable expected缺指针类型变量error66:String variable expected缺字符串变量error67:String expression expected缺字符串表达式error68:Circular unit reference单元UNIT部件循环引用error69:Unit name mismatch单元名不匹配error70:Unit version mismatch单元版本不匹配error71:Internal stack overflow内部堆栈溢出error72:Unit file format error单元文件格式错误error73:IMPLEMENTATION expected缺IMPLEMENTATIONerror74:Constant and case types do not match常量和CASE类型不匹配error75:Record or object variable expected缺记录或对象变量error76:Constant out of range常量越界error77:File variable expected缺文件变量error78:Pointer expression expected缺指针表达式error79:Integer or real expression expected缺整型或实型表达式error80:Label not within current block标号不在当前块内error81:Label already defined标号已定义error82:Undefined label in preceding statement part在前面未定义标号error83:Invalid@argument无效的@参数error84:UNIT expected缺UNITerror85:";"expected缺“;”error86:":"expected缺“:”error87:","expected缺“,”error88:"("expected缺“(”error89:")"expected缺“)”error90:"="expected缺“=”error91:":="expected缺“:=”error92:"["or"(."Expected缺“[”或“(.”error93:"]"or".)"expected缺“]”或“.)”error94:"."expected缺“.”error95:".."expected缺“..”error96:Too many variables变量太多error97:Invalid FOR control variable无效的FOR循环控制变量error98:Integer variable expected缺整型变量error99:Files and procedure types are not allowed here该处不允许文件和过程类型error100:String length mismatch字符串长度不匹配error101:Invalid ordering of fields无效域顺序error102:String constant expected缺字符串常量error103:Integer or real variable expected缺整型或实型变量error104:Ordinal variable expected缺有序类型变量error105:INLINE error INLINE错误error106:Character expression expected缺字符表达式error107:Too many relocation items重定位项太多error108:Overflow in arithmetic operation算术运算溢出error112:CASE constant out of range CASE常量越界error113:Error in statement表达式错误error114:Cannot call an interrupt procedure不能调用中断过程error116:Must be in8087mode to compile this必须在8087模式编译error117:Target address not found找不到目标地址error118:Include files are not allowed here该处不允许INCLUDE文件error119:No inherited methods are accessible here该处继承方法不可访问error121:Invalid qualifier无效的限定符error122:Invalid variable reference无效的变量引用error123:Too many symbols符号太多error124:Statement part too large语句体太长error126:Files must be var parameters文件必须是变量形参error127:Too many conditional symbols条件符号太多error128:Misplaced conditional directive条件指令错位error129:ENDIF directive missing缺ENDIF指令error130:Error in initial conditional defines初始条件定义错误error131:Header does not match previous definition和前面定义的过程或函数不匹配error133:Cannot evaluate this expression不能计算该表达式error134:Expression incorrectly terminated表达式错误结束error135:Invalid format specifier无效格式说明符error136:Invalid indirect reference无效的间接引用error137:Structured variables are not allowed here该处不允许结构变量error138:Cannot evaluate without System unit没有System单元不能计算error139:Cannot access this symbol不能存取符号error140:Invalid floating point operation无效的符号运算error141:Cannot compile overlays to memory不能编译覆盖模块至内存error142:Pointer or procedural variable expected缺指针或过程变量error143:Invalid procedure or function reference无效的过程或函数调用error144:Cannot overlay this unit不能覆盖该单元error146:File access denied不允许文件访问error147:Object type expected缺对象类型error148:Local object types are not allowed不允许局部对象类型error149:VIRTUAL expected缺VIRTUALerror150:Method identifier expected缺方法标识符error151:Virtual constructors are not allowed不允许虚构造函数error152:Constructor identifier expected缺构造函数标识符error153:Destructor identifier expected缺析构函数标识符error154:Fail only allowed within constructors只能在构造函数内使用Fail标准过程error155:Invalid combination of opcode and operands操作数与操作符无效组合error156:Memory reference expected缺内存引用指针error157:Cannot add or subtract relocatable symbols不能加减可重定位符号error158:Invalid register combination无效寄存器组合error159:286/287instructions are not enabled未激活286/287指令error160:Invalid symbol reference无效符号指针error161:Code generation error代码生成错误error162:ASM expected缺ASMerror166:Procedure or function identifier expected缺过程或函数标识符error167:Cannot export this symbol不能输出该符号error168:Duplicate export name外部文件名重复error169:Executable file header too large可执行文件头太长error170:Too many segments段太多二、Pascal运行错误信息中英文对照表运行错误是指程序运行时出现的错误,当发生时,Turbo Pascal显示如下信息:RUNTIME ERROR NNNN AT XXXX:YYYY其中,NNNN是运行错误代码,XXXX是错误发生的程序段,YYYY是错误地址偏移。
KEIL软件错误代码及错误信息

错误代码及错误信息错误释义error 1: Out of memory 内存溢出error 2: Identifier expected 缺标识符error 3: Unknown identifier 未定义的标识符error 4: Duplicate identifier 重复定义的标识符error 5: Syntax error 语法错误error 6: Error in real constant 实型常量错误error 7: Error in integer constant 整型常量错误error 8: String constant exceeds line 字符串常量超过一行error 10: Unexpected end of file 文件非正常结束error 11: Line too long 行太长error 12: Type identifier expected 未定义的类型标识符error 13: Too many open files 打开文件太多error 14: Invalid 无效的文件名error 15: found 文件未找到error 16: Disk full 磁盘满error 17: Invalid compiler directive 无效的编译命令error 18: Too many files 文件太多error 19: Undefined type in pointer def 指针定义中未定义类型error 20: Variable identifier expected 缺变量标识符error 21: Error in type 类型错误error 22: Structure too large 结构类型太长error 23: Set base type out of range 集合基类型越界error 24: may not be files or objectsfile分量不能是文件或对象error 25: Invalid string length 无效的字符串长度error 26: Type mismatch 类型不匹配error 27:error 27:Invalid subrange base type 无效的子界基类型error 28:Lower bound greater than upper bound 下界超过上界error 29:Ordinal type expected 缺有序类型error 30:Integer constant expected 缺整型常量error 31:Constant expected 缺常量error 32:Integer or real constant expected 缺整型或实型常量error 33:Pointer Type identifier expected 缺指针类型标识符error 34:Invalid function result type 无效的函数结果类型error 35:Label identifier expected 缺标号标识符error 36:BEGIN expected 缺BEGINerror 37:END expected 缺ENDerror 38:Integer expression expected 缺整型表达式error 39:Ordinal expression expected 缺有序类型表达式error 40:Boolean expression expected 缺布尔表达式error 41:Operand types do not match 操作数类型不匹配error 42:Error in expression 表达式错误error 43:Illegal assignment 非法赋值error 44:Field identifier expected 缺域标识符error 45:Object large 目标文件太大error 46:Undefined external 未定义的外部过程与函数error 47:Invalid object 无效的OBJ文件格式error 48:Code segment too large 代码段太长error 49:Data segment too large 数据段太长error 50:DO expected 缺DOerror 51:Invalid PUBLIC definition 无效的PUBLIC定义error 52:Invalid EXTRN definition 无效的EXTRN定义error 53: Too many EXTRN definitions 太多的EXTRN定义error 54:OF expected 缺OFerror 55:INTERFACE expected 缺INTERFACEerror 56:Invalid relocatable reference 无效的可重定位引用error 57:THEN expected 缺THENerror 58:TO or DOWNTO expected 缺TO或DOWNTO error 59:Undefined forward 提前引用未经定义的说明error 61:Invalid typecast 无效的类型转换error 62:Division by zero 被零除error 63:Invalid 无效的文件类型error 64:Cannot read or write variables of this type 不能读写此类型变量error 65:Pointer variable expected 缺指针类型变量error 66:String variable expected 缺字符串变量error 67:String expression expected 缺字符串表达式error 68:Circular unit reference 单元UNIT部件循环引用error 69:Unit name mismatch 单元名不匹配error 70:Unit version mismatch 单元版本不匹配error 71:Internal stack overflow 内部堆栈溢出error 72:Unit error 单元文件格式错误error 73:IMPLEMENTATION expected 缺IMPLEMENTATION error 74:Constant and case types do not match 常量和CASE 类型不匹配error 75:Record or object variable expected 缺记录或对象变量error 76:Constant out of range 常量越界error 77: expected 缺文件变量error 78:Pointer expression expected 缺指针表达式error 79:Integer or real expression expected 缺整型或实型表达式error 80:Label not within current block 标号不在当前块内error 81:Label already defined 标号已定义error 82:Undefined label in preceding statement part 在前面未定义标号error 83:Invalid @ argument 无效的@参数error 84:UNIT expected 缺UNITerror 85: ";" expected 缺“;”error 86: ":" expected 缺“:”error 87: "," expected 缺“,”error 88: "(" expected 缺“(”error 89: ")" expected 缺“)”error 90: "=" expected 缺“=”error 91: ":=" expected 缺“:=”error 92: "[" or "(." Expected 缺“[”或“(.”error 93: "]" or ".)" expected 缺“]”或“.)”error 94: "." expected 缺“.”error 95: ".." expected 缺“..”error 96:Too many variables 变量太多error 97:Invalid FOR control variable 无效的FOR循环控制变量error 98:Integer variable expected 缺整型变量error 99:Files and procedure types are not allowed here 该处不允许文件和过程类型error 100:String length mismatch 字符串长度不匹配error 101:Invalid ordering of fields 无效域顺序error 102:String constant expected 缺字符串常量error 103:Integer or real variable expected 缺整型或实型变量error 104:Ordinal variable expected 缺有序类型变量error 105:INLINE error INLINE错误error 106:Character expression expected 缺字符表达式error 107:Too many relocation items 重定位项太多error 108:Overflow in arithmetic operation 算术运算溢出error 112:CASE constant out of range CASE常量越界error 113:Error in statement 表达式错误error 114:Cannot call an interrupt procedure 不能调用中断过程error 116:Must be in 8087 mode to compile this 必须在8087模式编译error 117:Target address not found 找不到目标地址error 118:Include files are not allowed here 该处不允许INCLUDE文件error 119:No inherited methods are accessible here 该处继承方法不可访问error 121:Invalid qualifier 无效的限定符error 122:Invalid variable reference 无效的变量引用error 123:Too many symbols 符号太多error 124:Statement part too large 语句体太长error 126:Files must be var parameters 文件必须是变量形参error 127:Too many conditional symbols 条件符号太多error 128:Misplaced conditional directive 条件指令错位error 129:ENDIF directive missing 缺ENDIF指令error 130:Error in initial conditional defines 初始条件定义错误error 131:Header does not match previous definition 和前面定义的过程或函数不匹配error 133:Cannot evaluate this expression 不能计算该表达式error 134:Expression incorrectly terminated 表达式错误结束error 135:Invalid format specifier 无效格式说明符error 136:Invalid indirect reference 无效的间接引用error 137:Structured variables are not allowed here 该处不允许结构变量error 138:Cannot evaluate without System unit 没有System 单元不能计算error 139:Cannot access this symbol 不能存取符号error 140:Invalid floating point operation 无效的符号运算error 141:Cannot compile overlays to memory 不能编译覆盖模块至内存error 142:Pointer or procedural variable expected 缺指针或过程变量error 143:Invalid procedure or function reference 无效的过程或函数调用error 144:Cannot overlay this unit 不能覆盖该单元error 146: denied 不允许文件访问error 147:Object type expected 缺对象类型error 148:Local object types are not allowed 不允许局部对象类型error 149:VIRTUAL expected 缺VIRTUALerror 150: Method identifier expected 缺方法标识符error 151:Virtual constructors are not allowed 不允许虚构造函数error 152:Constructor identifier expected 缺构造函数标识符error 153:Destructor identifier expected 缺析构函数标识符error 154:Fail only allowed within constructors 只能在构造函数内使用Fail标准过程error 155:Invalid combination of opcode and operands 操作数与操作符无效组合error 156:Memory reference expected 缺内存引用指针error 157:Cannot add or subtract relocatable symbols 不能加减可重定位符号error 158:Invalid register combination 无效寄存器组合error 159:286/287 instructions are not enabled 未激活286/287指令error 160:Invalid symbol reference 无效符号指针error 161:Code generation error 代码生成错误error 162:ASM expected 缺ASMerror 166:Procedure or function identifier expected 缺过程或函数标识符error 167:Cannot export this symbol 不能输出该符号error 168:Duplicate export name 外部文件名重复error 169:Executable too large 可执行文件头太长error 170:Too many segments 段太多一、运行错误信息运行错误分为四类:1-99为DOS错误;100-149为I/O错误,发生I/O后,如果使用了编译开关{$I+},程序将终止执行,否则编译开关为{$I-},程序继续执行,并由IOResult函数返回错误信息; 150-199为严重错误,200-255为致命错误,致命错误将立即终止程序执行。
lingo错误代码大全(LingoerrorcodeDaquan)

lingo 错误代码大全(Lingo error code Daquan)LINGO error code meaning when error occurs:When a LINGO program is solved, the system first compiles the program. The system compiles or executes other commandsAn error reporting window pops up for errors or errors in the program, displaying its error code, and briefly referring toThe reason for the error. These error reporting information can prompt the user to detect errors in the program so that it can be modified as soon as possibleWe give a brief description of the error message for reference purposes onlyLINGO error number and cause control tableError code meaningThe memory of the 0 LINGO model generator has been exhausted. (the LINGO|Options command is available to General SolverThe tab "Generator Memory Limit" option modifies memory size1 the number of rows in the model is too large (for the actual model, this error rarely occurs)2 there are too many characters in the model (for a meaningful model, this error rarely occurs)3 there are too many characters in a line in the model (each line should not exceed 200 characters, otherwise it should be a newline)4 the specified line number exceeds the actual maximum line number in the model (this error is usually specified in the LOOK commandAn illegal line number appears5 there are no models in the current memory6 the number of nested TAKE commands in script files is too many (in LINGO, the TAKE command is restricted to 10 nested at most)7 cannot open the specified file (usually the specified file name spelling error)8 there are too many errors in script files, so return to command mode directly (no longer continue with this script file)9 (the error number is not currently in use)10 (the error number is not currently in use)11 syntax errors in the model (not consistent with the LINGO syntax)12 the parentheses in the model do not match13 the specified cell range name is not found in the spreadsheetfile14. The amount of temporary stack space needed for the operation (usually means that the expression in the model is too long)15 could not find the relational operator (usually lost < <), = '' or '' '16 input and output, different objects of different sizes (using the collection cycle input and output, the size of the collection should beSame)The memory space of the index of the 17 collection element is not enoughThe memory stack space of the 18 set is not enough19 index function @INDEX incorrect useThe 20 collection name is not used properlyImproper use of the 21 property name22 inequality or equality relation is too much (for example, constraint 2<x<4 is not allowed to appear in the same statement)The number of 23 parameters does not agree with each otherThe 24 set name is illegal25 function @WKX () parameter is illegal (Note: there is no function @WKX ()) in LING09.0The number of indexed variables in the 26 set does not match27 the range of cells specified in the spreadsheet file is not continuousThe 28 row name is illegal29, the data segment or initial segment of the data does not match30 an error occurred while linking to Excel31 when using the @TEXT function, the parameter is not valid32 uses the empty collection member name33 when using the @OLET function, the parameter is not valid34 when a collection is generated from a range of cell units specified in a spreadsheet file, the size of the unit range should be oneBy35 output uses an unknown variable name36 the element name of the base set is illegalThe 37 collection name has been usedThe 38 ODBC service returned the error message39 the component element (subscript) of a derived collection is no longer in the original parent collection40 the number of index elements of the derived collection does not match41 when you define a derived set, you have too many basic sets used (usually this error does not occur)42 the set filter condition has an unstable variable in the expression43 the expression of the set filter condition is out of order44 the expression for the filter condition does not end (ie no "sign")The list of arguments for the 45 @ODBC function is wrong46 file name is not legal47 open too many files48 cannot open file49 error reading fileThe 50 @FOR function is not used properly51 compile time, LINGO model generator is out of memoryImproper use of 52 @IN function53, the specified cell range name is not found in the spreadsheet file (appears to be similar to the error code "13")54 an error occurred while reading the spreadsheet fileThe 55 @TEXT function cannot open the file56 @TEXT function error reading file57, the @TEXT function read illegal input data when reading the fileThe 58 @TEXT function reads the file and finds that the input data is less than actually neededThe 59 @TEXT function reads the file and finds that the input data is more than actually needed60 when the data is entered with the @TEXT function, the filename is not specified61 line command spelling error62 LINGO generates insufficient memory when the model isgeneratedThe 63 model is incorrectly defined64, @FOR function nested too muchImproper use of 65 @WARN function66 warning: fixed variables are not unique (for example: any positive number is bound @SIGN (X) = l solution)67, non-zero coefficients in the model lead to memory depletion68 illegal arithmetic operations on stringsThe operator in the 69 constraint is illegalThe 70 attribute's index is out of boundsThe 71 variable bounding functions (@GIN, @BIN, @FREE, @BND) use errors72, the value of a fixed variable cannot be determined from the constraint of a fixed constraint (containing only fixed variables) (equivalent to the equation without solution)Or LINGO algorithm can not be solved, for example, the iterative algorithm is not convergent73, when the LINGO builds the model (structural analysis of the model), the user interrupts the model generation processThe 74 variable cross over 103275 sets of variables conflict with each other. (for example, in a model, @BND (-6, X, 6) and @BND (-5, X) are specified at the same time(5) is allowed, but at the same time specifying @BND (-6, X,6) and @BND (7, X, 9) are conflictingAn error occurred when 76 LINGO generated the model, and the model could not be passed to the optimization solver77 undefined arithmetic operations (for example, divisor is 0)78 (the error number is not currently in use)79 (the error number is not currently in use)80 when the LINGO model is generated, the system memory is exhausted81, no feasible solution is foundThe 82 optimal value is unbounded83 (the error number is not currently in use)84 nonzero coefficients in the model85 expression is too complex to cause stack overflow86 arithmetic errors (such as 1 / 0 or @LOG (-1), etc.)Improper use of the 87 @IN function (seems to be the same as the error code "52")88 no memory is stored in the current memoryAn unexpected error occurred during the 89 LINGO operation (please contact LINGO company to resolve the problem)90 when the model is generated by LINGO, the user interrupts the model generation process91 when the data segment has a variable = statement, the LINGO operation will ask the user to lose the value of this variable,If this value is entered wrong, the error code is displayed92 warning: the current solution may not be feasible / optimal93 conversion modifier error in command line94 (the error number is not currently in use)95 before the model is solved, the user interrupts the solution process96 (the error number is not currently in use)97 when an input is entered with the TAKE command, an out ofthe way syntax is present98 syntax errors occurred when entering the model with the TAKE command99 syntax errors, missing variables100 syntax errors, missing constants101 (the error number is not currently in use)102 the specified output variable name does not exist103 (the error number is not currently in use)104, the model has not been solved, or the model is empty105 (the error number is not currently in use)The minimum and maximum values of the 106 row widths are 68 and 200 respectively107 the function @POINTER specifies that the index value is invalidThe size of the 108 model is beyond the current version of LINGO109 reached the upper iteration limit,So LINGO stops working on the model (the upper bound can be passedThe "LING0|0ptions" command modifies the "Iteration" option in the General Solver tabThe 110 HIDE (hidden) command specifies that the password is beyond the limit of 8 charactersThe 111 model is hidden, so the current command is not available112 password error when restoring hidden model113 causes a LOOK or SAVE command to fail because a line is too longThe 114 HIDE (hidden) command specifies that the two password is inconsistent and the command failedThe 115 parameter list is too longThe 116 file name (including the pathname) is too long117 invalid commandThe 118 command is ambiguous (for example, you might enter an abbreviated name of the command, and this abbreviation may have multiple commands with it.)Correspondence119 there are too many errors in the command script file, LINGO gives up and continues to emerald it120, LINGO cannot write the configuration file (F) to the startup directory or the work directory (possibly a permission issue)121 integer programming without sensitivity analysis122 sensitivity analysis options are not activated. Sensitivity analysis cannot be performed (via theLINGO|Options command)Modify the "Dual Computation" option in the General Solver tab123 the debug (Debug) command can only be used if the model is linear and the model is infeasible or unbounded124 initializes the properties of an empty collectionThere are no elements in the 125 set126 when using the ODBC connection output, it is found that the output variable name does not exist127 when using ODBC to connect output, the variable dimensions must be the same at the same time128 the parameter specified by the SET command is invalid when the bow I is used129 the parameter specified when using the SET command is invalid130 the parameter name specified when using the SET command is invalidThe 131 FREEZE command failed to save the configuration file F (possibly a permission problem)An error occurred while reading the configuration file (F) for 132 LINGO133, LINGO cannot connect to a spreadsheet file via OLE (e.g., when someone else is editing the file)134 output error, unable to complete all output operations135 the solution time is out of bounds (via the LING0|0ptions command on the General Solver tab)The "Time" option is modified.)136 error operation when using @TEXT function output137 (the error number is not currently in use)The 138 DIVERT (output redirection) command has too many nested times (no more than 10 nested)The 139 DIVERT (output redirection) command cannot open the specified file140, when the original optimal solution is given, thesensitivity analysis information can not be given (by the "LING0|0ptions" command pair)通用求解器选项卡中的“双重计算”选项进行修改)141对某行约束的敏感性分析无法进行,因为这一行已经是固定约束(即该约束中所有变量都已经在直接求解程序进行预处理时被固定下来了)142出现了意想不到的错误(请与LINDO公司联系解决这个问题)143使用接口函数输出时,同时输出的对象的维数必须相同144 @指针函数的参数列表无效145 @指针函数出错:2输出变量无效;3内存耗尽;4只求原始最优解时无法给出敏感性分析信息;5对固定行无法给出敏感性分析信息;6意想不到的错误。
linux系统错误码大全

linux系统错误码⼤全#define EPERM 1 /* Operation not permitted */#define ENOENT 2 /* No such file or directory */#define ESRCH 3 /* No such process */#define EINTR 4 /* Interrupted system call */#define EIO 5 /* I/O error */#define ENXIO 6 /* No such device or address */#define E2BIG 7 /* Arg list too long */#define ENOEXEC 8 /* Exec format error */#define EBADF 9 /* Bad file number */#define ECHILD 10 /* No child processes */#define EAGAIN 11 /* Try again */#define ENOMEM 12 /* Out of memory */#define EACCES 13 /* Permission denied */#define EFAULT 14 /* Bad address */#define ENOTBLK 15 /* Block device required */#define EBUSY 16 /* Device or resource busy */#define EEXIST 17 /* File exists */#define EXDEV 18 /* Cross-device link */#define ENODEV 19 /* No such device */#define ENOTDIR 20 /* Not a directory */#define EISDIR 21 /* Is a directory */#define EINVAL 22 /* Invalid argument */#define ENFILE 23 /* File table overflow */#define EMFILE 24 /* Too many open files */#define ENOTTY 25 /* Not a typewriter */#define ETXTBSY 26 /* Text file busy */#define EFBIG 27 /* File too large */#define ENOSPC 28 /* No space left on device */#define ESPIPE 29 /* Illegal seek */#define EROFS 30 /* Read-only file system */#define EMLINK 31 /* Too many links */#define EPIPE 32 /* Broken pipe */#define EDOM 33 /* Math argument out of domain of func */#define ERANGE 34 /* Math result not representable */#define EDEADLK 35 /* Resource deadlock would occur */#define ENAMETOOLONG 36 /* File name too long */#define ENOLCK 37 /* No record locks available */#define ENOSYS 38 /* Function not implemented */#define ENOTEMPTY 39 /* Directory not empty */#define ELOOP 40 /* Too many symbolic links encountered */#define EWOULDBLOCK EAGAIN /* Operation would block */#define ENOMSG 42 /* No message of desired type */#define EIDRM 43 /* Identifier removed */#define ECHRNG 44 /* Channel number out of range */#define EL2NSYNC 45 /* Level 2 not synchronized */#define EL3HLT 46 /* Level 3 halted */#define EL3RST 47 /* Level 3 reset */#define ELNRNG 48 /* Link number out of range */#define EUNATCH 49 /* Protocol driver not attached */#define ENOCSI 50 /* No CSI structure available */#define EL2HLT 51 /* Level 2 halted */#define EBADE 52 /* Invalid exchange */#define EBADR 53 /* Invalid request descriptor */#define EXFULL 54 /* Exchange full */#define ENOANO 55 /* No anode */#define EBADRQC 56 /* Invalid request code */#define EBADSLT 57 /* Invalid slot */#define EDEADLOCK EDEADLK#define EBFONT 59 /* Bad font file format */#define ENOSTR 60 /* Device not a stream */#define ENODATA 61 /* No data available */#define ETIME 62 /* Timer expired */#define ENOSR 63 /* Out of streams resources */#define ENONET 64 /* Machine is not on the network */#define ENOPKG 65 /* Package not installed */#define EREMOTE 66 /* Object is remote */#define ENOLINK 67 /* Link has been severed */#define EADV 68 /* Advertise error */#define ESRMNT 69 /* Srmount error */#define ECOMM 70 /* Communication error on send */#define EPROTO 71 /* Protocol error */#define EMULTIHOP 72 /* Multihop attempted */#define EDOTDOT 73 /* RFS specific error */#define EBADMSG 74 /* Not a data message */#define EOVERFLOW 75 /* Value too large for defined data type */#define ENOTUNIQ 76 /* Name not unique on network */#define EBADFD 77 /* File descriptor in bad state */#define EREMCHG 78 /* Remote address changed */#define ELIBACC 79 /* Can not access a needed shared library */#define ELIBBAD 80 /* Accessing a corrupted shared library */#define ELIBSCN 81 /* .lib section in a.out corrupted */#define ELIBMAX 82 /* Attempting to link in too many shared libraries */#define ELIBEXEC 83 /* Cannot exec a shared library directly */#define EILSEQ 84 /* Illegal byte sequence */#define ERESTART 85 /* Interrupted system call should be restarted */#define ESTRPIPE 86 /* Streams pipe error */#define EUSERS 87 /* Too many users */#define ENOTSOCK 88 /* Socket operation on non-socket */#define EDESTADDRREQ 89 /* Destination address required */#define EMSGSIZE 90 /* Message too long */#define EPROTOTYPE 91 /* Protocol wrong type for socket */#define ENOPROTOOPT 92 /* Protocol not available */#define EPROTONOSUPPORT 93 /* Protocol not supported */#define ESOCKTNOSUPPORT 94 /* Socket type not supported */#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ #define EPFNOSUPPORT 96 /* Protocol family not supported */#define EAFNOSUPPORT 97 /* Address family not supported by protocol */#define EADDRINUSE 98 /* Address already in use */#define EADDRNOTAVAIL 99 /* Cannot assign requested address */#define ENETDOWN 100 /* Network is down */#define ENETUNREACH 101 /* Network is unreachable */#define ENETRESET 102 /* Network dropped connection because of reset */ #define ECONNABORTED 103 /* Software caused connection abort */#define ECONNRESET 104 /* Connection reset by peer */#define ENOBUFS 105 /* No buffer space available */#define EISCONN 106 /* Transport endpoint is already connected */#define ENOTCONN 107 /* Transport endpoint is not connected */#define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */ #define ETOOMANYREFS 109 /* Too many references: cannot splice */#define ETIMEDOUT 110 /* Connection timed out */#define ECONNREFUSED 111 /* Connection refused */#define EHOSTDOWN 112 /* Host is down */#define EHOSTUNREACH 113 /* No route to host */#define EALREADY 114 /* Operation already in progress */#define EINPROGRESS 115 /* Operation now in progress */#define ESTALE 116 /* Stale NFS file handle */#define EUCLEAN 117 /* Structure needs cleaning */#define ENOTNAM 118 /* Not a XENIX named type file */#define ENAVAIL 119 /* No XENIX semaphores available */#define EISNAM 120 /* Is a named type file */#define EREMOTEIO 121 /* Remote I/O error */#define EDQUOT 122 /* Quota exceeded */#define ENOMEDIUM 123 /* No medium found */#define EMEDIUMTYPE 124 /* Wrong medium type */。
keil编译常见错误
error 36:BEGIN expected 缺 BEGIN error 37:END expected 缺 END error 38:Integer expression expected 缺整型表达式 error 39:Ordinal expression expected 缺有序类型表达式 error 40:Boolean expression expected 缺布尔表达式 error 41:Operand types do not match 操作数类型不匹配 error 42:Error in expression 表达式错误 error 43:Illegal assignment 非法赋值 error 44:Field identifier expected 缺域标识符 error 45:Object file too large 目标文件太大 error 46:Undefined external 未定义的外部过程与函数 error 47:Invalid object file record 无效的 OBJ 文件格式 error 48:Code segment too large 代码段太长 error 49:Data segment too large 数据段太长 error 50:DO expected 缺 DO
常见的 KEIL UV4编译错误
错误代码及错误信息 错误释义 error 1: Out of memory 内存溢出 error 2: Identifier expected 缺标识符 error 3: Unknown identifier 未定义的标识符 error 4: Duplicate identifier 重复定义的标识符 error 5: Syntax error 语法错误 error 6: Error in real constant 实型常量错误 error 7: Error in integer constant 整型常量错误 error 8: String constant exceeds line 字符串常量超过一行 error 10: Unexpected end of file 文件非正常结束 error 11: Line too long 行太长 error 12: Type identifier expected 未定义的类型标识符 error 13: Too many open files 打开文件太多 error 14: Invalid file name 无效的文件名 error 15: File not found 文件未找到 error 16: Disk full 磁盘满 error 17: Invalid compiler directive 无效的编译命令 error 18: Too many files 文件太多 error 19: Undefined type in pointer def 指针定义中未定义类型 error 20: Variable identifier expected 缺变量标识符 error 21: Error in type 类型错误 error 22: Structure too large 结构类型太长 error 23: Set base type out of range 集合基类型越界 error 24: File components may not be files or objectsfile 分量不能是文件或对象 error 25: Invalid string length 无效的字符串长度
解决linux打开文件数1024限制的解决办法
解决linux打开文件数1024限制的解决办法24 十1、/etc/pam.d/login 添加session required /lib/security/pam_limits.so注意看这个文件的注释2. /etc/security/limits.conf 添加www – nofile 1006154www 是一个用户,如果是想所有用户生效的话换成 * ,设置的数值与硬件配置有关,别设置太大了。
—————————————————————————–3. 修改 /etc/rc.local 添加echo 8061540 > /proc/sys/fs/file-max做完3个步骤,就可以了。
补充说明:/proc/sys/fs/file-max该文件指定了可以分配的文件句柄的最大数目。
如果用户得到的错误消息声明由于打开文件数已经达到了最大值,从而他们不能打开更多文件,则可能需要增加该值。
可将这个值设置成有任意多个文件,并且能通过将一个新数字值写入该文件来更改该值。
缺省设置:4096/proc/sys/fs/file-nr该文件与 file-max 相关,它有三个值:已分配文件句柄的数目已使用文件句柄的数目文件句柄的最大数目该文件是只读的,仅用于显示信息。
关于“打开文件数”限制Linux系统上对每一个用户可使用的系统资源都是有限制的,这是多用户系统必然要采用的一种资源管理手段,试想假如没有这种机制,那么任何一个普通用户写一个死循环程序,用不了多久系统就要“拒绝服务”了。
今天我遇到了tomcat日志报的错误信息”too many open files”,第一意识就想到了是ulimit控制的”open files“限制。
然而问题来了。
我在/etc/profile 里加入了 ulimit -n 4096保存之后,普通用户登录的时候均会收到一条错误信息ulimit: open files: cannot modify limit: Operation not permitted。
MySQLopen_files_limit相关设置
MySQLopen_files_limit相关设置背景:数据库链接不上,报错:root@localhost:/var/log/mysql# mysql -uzjy -p -h192.168.1.111 --default-character-set=utf8 -P3306Enter password:ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0分析⽅法:在这个地⽅我看不出什么,直接看错误⽇志:[ERROR] /usr/sbin/mysqld: Can't open file: './java/tt_fte.frm' (errno: 24)root@localhost:/var/log/mysql# perror 24OS error code 24: Too many open files⼀看到这⾥,就觉得需要调整 open_files_limit 参数了(默认最⼩1024),⾄此问题解决。
虽然问题解决了,但是还没有弄清楚MySQL打开了多少个⽂件描述符,打开了哪写⽂件描述符号,以及如何预防。
怎么了解MySQL打开了多少个⽂件描述符呢?知识点:⽤去查看,理解myisam和innodb的⽂件描述符、OS 的ulimit相关认识。
基于上⾯的问题,现在来分析(此时数据库就连不上了,⼀直报⽆法打开的错误信息)查看MySQL打开的⽂件:root@localhost:~# lsof -p 26288 | wc -l1042#因为数据库链接不了,所以只能通过系统查看他的⽂件描述符root@localhost:~# cat /proc/26288/limitsLimit Soft Limit Hard Limit UnitsMax cpu time unlimited unlimited secondsMax file size unlimited unlimited bytesMax data size unlimited unlimited bytesMax stack size 8388608 unlimited bytesMax core file size 0 unlimited bytesMax resident set unlimited unlimited bytesMax processes 7987779877 processesMax open files 1024 4096 filesMax locked memory 6553665536 bytesMax address space unlimited unlimited bytesMax file locks unlimited unlimited locksMax pending signals 7987779877 signalsMax msgqueue size 819200819200 bytesMax nice priority 00Max realtime priority 00Max realtime timeout unlimited unlimited us也可以通过下⾯的⽅法查看,下⾯的⽅法最为精确root@localhost:~# ls -lh /proc/26288/fd | wc -l1024上⾯看出,MySQL这时打开的⽂件描述符1024,已经达到上限,所以再打开的时候就报错了。
又见OutOfMemory——一次内存溢出故障诊断全过程聚沙成塔-小哈的记事薄
⼜见OutOfMemory——⼀次内存溢出故障诊断全过程聚沙成塔-⼩哈的记事薄这是⼀个⼏⽉前的案例,问题⽐较典型,在分析和事后学习的过程中让我对本地内存溢出有了⼀定的了解。
在此和⼤家分享。
先说⼀下背景,应⽤环境是AIX5.3+WebSphere6.0.2.37。
在今年的⼀季度曾发⽣过⼏次OOM故障,当时通过⼏次内存参数优化,最后确定为“-Xgcprolicy:gencon –Xms512m –Xmx1280m –Xmn200m”,此后稳定了半年,直到此次再发⽣应⽤宕机。
赶到现场,发现profiles⽬录下⽣成有javacore和heapdump⽂件,Javacore的第⼀⾏“Cause of thread dump : Dump Event "systhrow" (00040000) Detail "java/lang/OutOfMemoryError" received”表明了宕机的原因是OOM,但是令我困惑的是这段内容:0SECTION MEMINFO subcomponent dump routineNULL =================================1STHEAPFREE Bytes of Heap Space Free: 818cb701STHEAPALLOC Bytes of Heap Space Allocated: 20000000在分配的512MB(⼗六进制20000000)的堆空间中,有129MB(818cb70)空闲空间,按理说,这种情况下不该发⽣OutOfMemory。
就算有申请⼀个⼤对象,同时JVM堆的新⽣代由于碎⽚原因没有连续空间满⾜要求,那么应该发⽣堆扩展,所以此次内存溢出不是堆(Heap)溢出,GC⽇志的分析也⽀持了这⼀点。
既然Javacore⽆法得到有⽤信息,我把⽬光转向了SystemErr.log,在对应⽇期的地⽅,我发现了⼤量如下报错:[8/26/10 14:12:57:860 GMT+08:00] 0000002f SystemErr R Exception in thread "WebContainer : 1"ng.RuntimeException: ng.OutOfMemoryError: Failed to create a thread: retVal -1073741830, errno 11 [8/26/10 14:12:57:860 GMT+08:00] 0000002f SystemErr R atcom.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:801)[8/26/10 14:12:57:860 GMT+08:00] 0000002f SystemErr R atcom.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)[8/26/10 14:12:57:860 GMT+08:00] 0000002f SystemErr R atcom.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)[8/26/10 14:12:57:860 GMT+08:00] 0000002f SystemErr R Caused by: ng.OutOfMemoryError: Failed to create a thread: retVal -1073741830, errno 11at ng.Thread.startImpl(Native Method)at ng.Thread.start(Thread.java:980)at com.ibm.ws.util.ThreadPool.addThread(ThreadPool.java:630)at com.ibm.ws.util.ThreadPool$3.run(ThreadPool.java:1148)at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)at com.ibm.ws.util.ThreadPool.execute(ThreadPool.java:1146)at com.ibm.ws.util.ThreadPool.execute(ThreadPool.java:1040)at com.ibm.ws.runtime.WSThreadPool.execute(WSThreadPool.java:151)at com.ibm.io.async.ResultHandler.startHandler(ResultHandler.java:248)at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:570)at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)在事后的学习中,我知道“ng.OutOfMemoryError: unable to create native thread” 这样的异常是在说,本地内存耗尽,从⽽新的线程⽆法创建。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
/proc/sys/fs/file-max应该是系统级的限制
[root@B1943 ~]# cat /proc/sys/fs/file-max(查看)
8192
[root@B1943 ~]# echo 65536 > /proc/sys/fs/file-max(修改)
POSIX message queues (bytes, -q) 819200
max rt priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 71680
如果要重启后仍生效,则可修改/etc/sysctl.conf,加上:fs.file-max = 65536
另外还有一个,/proc/s/fs/file-nr
只读,可以看到整个系统目前使用的文件句柄数量
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[root@B1943 ~]#ulimit -n
1024
ulimit应该是用户的限制,如果太小则修改大小:ulimit -n 2048
如果要重启后仍生效,则可修改/etc/security/limits.conf,后面加上:* - nofile 2048
问题描述:java.io.IOException:Toomanyopenfiles
[root@B1943 ~]#ulimit -a(查看文件句柄数)
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
max nice (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 71680
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8