Questions tagged [ulimit]

ulimit gets or sets the upper limit for resources available to the current shell.

356 questions
0
votes
1 answer

Why is the size of stack segment much smaller than ulimit -s?

I've noticed that, in ubuntu 12.04 x64, all programs map stack segment to virtual address range like: 7fff0f59b000-7fff0f5bc000 rw-p 00000000 00:00 0 [stack] Since 0xbc000 - 0x9b000 = 0x21000 = 135168, the size is much smaller than the value…
ShenLei
  • 567
  • 1
  • 5
  • 17
0
votes
2 answers

ulimit - different options mentioned by help and man bash

When I tried to get the maximum socket buffer size (ulimit -b) on an Ubuntu Server 12.04.5 LTS, the ulimit tool throws this error message: root@wsproducao:~# ulimit -b -su: ulimit: -b: invalid option ulimit: usage: ulimit [-SHacdefilmnpqrstuvx]…
user3742266
  • 153
  • 1
  • 1
  • 6
0
votes
3 answers

Proc crashes even if it allocates less memory than limited by ulimit

I have set stack size to 2000Kb by ulimit -s 2000 and ulimit -Ss 2000 for hard limit. And in the below program i have allocated appox 2040000(510000 x 4) bytes which is less than i limited i.e,. 2048000(2000*4)bytes but i see that my program…
pa1
  • 778
  • 3
  • 11
  • 26
0
votes
1 answer

how to increase max number of process for Solaris 10 x86 server?

We have a test server which hosts lots of test applications. when there are lots of process (or threads) running, we found new process or thread cannot be created: for C program: "cannot fork, resource unavailable" for java program: it throws…
julius ho
  • 1
  • 1
0
votes
1 answer

Too many open files even after setting kern.maxfiles

I have set the kern.maxfiles=65536 kern.maxfilesperproc=65536 After this, I put the following command in my .zshrc file ulimit -n 30000 However, if I try to run a netty based application from eclipse, only 10k sockets open and then java IO…
Sachin Malhotra
  • 1,211
  • 2
  • 11
  • 24
0
votes
1 answer

Dockerfile privileged flag for Docker container (Needed because of Apache error ulimit ) AWS

I would like to start a container with privileges. Manually I can do that directly by typing: sudo docker run -privileged name/image But how can I generated a container from a Dockerfile with privileges, is there any command to do that in the…
chuseuiti
  • 783
  • 1
  • 9
  • 32
0
votes
1 answer

Resolving glassfish 3 too many files exception (Richfaces 4.3)

we did a migration of our j2ee application on a Weblogic application server to Glassfish 3. Doing this we had to switch from Richfaces 3.X to Richfaces 4.3 A new resource handling came along with RF4 and static resources for RF-Components have to be…
Brototype
  • 103
  • 1
  • 4
0
votes
2 answers

see how much virtual memory is assigned to a process-bash

I have written a script which assigns virtual or "simulated" memory to a process that I have created. What I want to know is, how can I then list how much memory the process has? I want it to return "process has x mbs" if I have assigned some memory…
paul
  • 197
  • 1
  • 2
  • 12
0
votes
1 answer

Boot2Docker Hazelcast and ulimit

I try to create a development environment for the software we develop. For this I use Docker and Boot2docker because I work on mac (Yosemite). We use Hazelcast in the product, but I am having a problem when I "dockerize" it. At the first connection…
Ben
  • 103
  • 1
  • 7
0
votes
1 answer

MongoDB can't set 'maxIncomingConnections'

I have a problem setting the maximum incoming connections for my MongoDB. I ran ulimit -n 1000000 and restarted mongo, the last ping in my MMS dashboard shows: "maxIncomingConnections": 1000000, however: "connections": { "current": 701, …
Andrei Stalbe
  • 1,511
  • 6
  • 26
  • 44
0
votes
2 answers

JBoss deployment throws 'java.util.zip.ZipException: error in opening zip file' on Linux?

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…
Kaushalya
  • 1,009
  • 1
  • 10
  • 10
0
votes
1 answer

Unable to start mongod service

I installed mongodb using the information in this link. However, when I user the service mongod start command I get the following error. Can someone help me troubleshoot? [Piyush@localhost ~]$ service mongod start /etc/init.d/mongod: line 54:…
proutray
  • 1,943
  • 3
  • 30
  • 48
0
votes
0 answers

how to use the bash commands in C?

I was actually searching for the way to execute the output of bash built-in commands through a C program. Specifically I want to get the output of no.of processes running in the system through a C program . I found the command , now I want to get…
NealCaffery
  • 522
  • 6
  • 14
0
votes
1 answer

Hadoop start-dfs.sh fail

I am new to Hadoop, I config cluster follow the instruction After config, I start HDFS daemons with /bin/start-dfs.sh I check log file /home/deploy/hadoop/libexec/../logs/hadoop-deploy-datanode-slave1.out to make sure is run, but I see only text as…
Minh Ha Pham
  • 2,566
  • 2
  • 28
  • 43
0
votes
2 answers

Changing ulimit on Amazon EC2

Is there a way to increase the ulimit -n (open files) for an Amazon EC2 instance? I am running an amazon m3.2xlarge ubuntu instance for testing purposes. The ulimit -Hn is 4096 but I need over 10k. I have even tried temporarily getting higher…
JerryFox
  • 615
  • 2
  • 13
  • 25