Windows equivalent of ulimit -n
Hi, What is the windows equivalent of the unix command " ulimit -n" ? Basically, i want to set the maximum fd limit via command prompt. ...
Hi, What is the windows equivalent of the unix command " ulimit -n" ? Basically, i want to set the maximum fd limit via command prompt. ...
According to the manpage, "-l" in ulimit means "The maximum size that may be locked into memory". What does this sentence mean, exactly? How may it affect running programs? ...
I am running Ubuntu Linux (2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux) and it seems that the command "ulimit -t" does not work properly. I ran: ulimit -t 1; myprogram where 'myprogram' is an endless loop. I expected the program to be interrupted after 1 second, but it did not stop. I tried the same thi...
I need to limit the amount of time and cpu taken by external command line apps I spawn from a python process using subprocess.call , mainly because sometimes the spawned process gets stuck and pins the cpu at 99%. nice and ulimit seem like reasonable ways to do this, but I'm not sure how they'd interact with subprocess. The limits lo...
I have the following script: cat > /tmp/script.sh <<EndOfScript #!/bin/sh ulimit -n 8192 run_app EndOfScript which runs smoothly locally, it is always ok. But if I try to run it remotely through ssh: scp /tmp/script.sh user@host:/tmp/script.sh ssh user@host "chmod 755 /tmp/script.sh; /tmp/script.sh" I got the error: ulimit: open ...
If launching as root like this: memcached -c 5000 ... do I need my startup script to look like this: ulimit -n 5000 memcached -c 5000 ... Or will memcached set the max open files automatically? ...
I have a Perl script that does various installation steps to set up a development box for our company. It runs various shell scripts, some of which crash due to lower than required ulimits (specifically, stack size -s in my case). Therefore, I'd like to set a ulimit that would apply to all scripts (children) started from within my main ...
I deployed a large EAR (contained more than ~1024 jars/wars) on JBoss running with Java 6 on Linux, and the deployment process cried throwing the following exception: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file) at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentE...
I have my own multithreaded C program which scales in speed smoothly with the number of CPU cores.. I can run it with 1, 2, 3, etc threads and get linear speedup.. up to about 5.5x speed on a 6-core CPU on a Ubuntu Linux box. I had an opportunity to run the program on a very high end Sunfire x4450 with 4 quad-core Xeon processors, runni...
The following problem occurs on a machine running Ubuntu 10.04 with the 2.6.32-22-generic kernel: Setting a limit for the Resident Set Size (RSS) of a process does not seem to have any effect. I currently set the limit in Python with the following code: import resource # (100, 100) is the (soft, hard) limit. ~100kb. resource.setrlimit(r...
The default limit for the max open files on Mac OS X is 256 (ulimit -n) and my application needs about 400 file handlers. I tried to change the limit with setrlimit() but even if the function executes correctly, i'm still limited to 256. Here is the test program I use: #include <stdio.h> #include <sys/resource.h> main() { struct rl...
My programs run out of memory like half of the time I run them. Under Linux I can set a hard limit to the available memory using ulimit -v mem-in-kbytes. Actually, I use ulimit -S -v mem-in-kbytes, so I get a proper memory allocation problem in the program and I can abort. But... ulimit is not working in OSX 10.6. I've tried with -s and...
I start a new bash shell, and execute: ulimit -m 102400 ulimit -a " core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 20 file size (blocks, -f) unlimited pending signals (-i) 16382 max locked memory (kbytes, -l) 64 max memory siz...
Hi, I am trying to debug an application using gdb on Linux. However, when loading symbols from the shared library I want to debug, gdb always fails with the error: gdb/utils.c:904: internal error: virtual memory exhausted: can't allocate 5592 bytes. uname shows unlimited for all parameters including vmemory. Any ideas on how to resol...
I start application with -Xmx100G. The value returned by Runtime.maxMemory is 91G. Where does the remaining memory (9G) go? I see from other posts that the API is not 100% accurate. I would like to know more about the difference. I set the virtual memory size by $ulimit -a 100000000. The command fails. $java -Xmx99g -version Erro...
So on one system, I have values that are pretty wide open: $ ulimit -a | grep mem max locked memory (kbytes, -l) 40000 max memory size (kbytes, -m) unlimited virtual memory (kbytes, -v) unlimited Another system has much more limiting values, but I can't for the life of me find out where the 32MB upper limit (it ...
When sending a mail trough javamail, a socket to the smtp server is opened. Now, we got the case, that the connection of the mail server went down while the connection was still alive and while javamail was waiting for the server (spam scanning took a few seconds). Therefor the TCP connection was never really closed and the client deadlo...
I try to increase open file limit for certain user on CentOS 5.5 Linux. I added a new line to /etc/security/limits.conf: seed hard nofile 10240 Then do test: runuser -s /bin/bash - seed -c "ulimit -S -c 0>/dev/null 2>&1; ulimit -a" 0 core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited...