General :: Increase Stack Limit Permanently Without Restarting

Jul 20, 2011

I need to increase the default stack size on Linux. As I know there are usually two ways:

ulimit -s size
/etc/security/limits.conf

The ulimit method only works as long as I am logged in.

limits.conf will work after a restart.

Is there a possible way to increase the limit without restarting?

View 2 Replies


ADVERTISEMENT

Programming :: Why The Stack Size Limit

May 1, 2011

Why is it in Linux that there is a stack size set by default? And why is it so small? (My system is set to 8192 kbytes.) And why is there a default limit on the stack size when the max memory and virtual memory size are, by default, unlimited? (Aren't they both fed from the same place ultimately?)

Reason I ask: I want to use recursive functions in my programming a lot more. Problem is, if the language (or implementation) doesn't happen to support tail-call recursion, then I can be pretty well certain that the first huge problem that gets thrown at my function is going to kill my program because the stack size limit is going to be quickly reached. Obviously, I can change the stack size limit for my own computers, but it doesn't feel so great knowing that most of the people who copy and execute my code will have probably have overlooked this. Anyway, does anyone know: is this small default stack size limit just one of those historical artifacts, or is there some technical reason for it?

View 5 Replies View Related

Debian :: Increase Apt-cache Limit?

Aug 21, 2011

There I was, trying to update the package lists in a fresh install of Knoppix, when:

View 8 Replies View Related

Ubuntu Installation :: APT - Cache-Limit Increase ?

May 31, 2011

I'm recently receiving error message: Eynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf), E:Error occurred while processing libguile-ltdl-1 (NewFileVer1), Eroblem with MergeList /var/lib/dpkg/status, E:The package lists or status file could not be parsed or opened.'

I have tried to increase the cache by adding the line

It is apparently getting the value from elsewhere.

View 1 Replies View Related

Red Hat / Fedora :: Increase Nofile Limit For Daemon?

Mar 5, 2011

I'm looking for recommendations on how to increase the nofile limit for a daemon running as other than root. Does anyone else do this? It'd be nice if I could employ /etc/security/limits.conf.

View 2 Replies View Related

Ubuntu Servers :: Cannot Increase Open Files Limit On 9.10 (goes Down But Not Up)?

Mar 24, 2010

This is happening on Ubuntu 9.10 serverI'm trying to increase the number of open files allowed for a user. This is for an nginx webserver where the current limit of 1024 is not enough.According to the posts I've found so far, I should be able to put lines into /etc/security/limits.conf like this;

Code:
* soft nofile 4096
* hard nofile 4096

[code]...

View 2 Replies View Related

Ubuntu Installation :: Java: Increase GC Overhead Limit?

Jun 15, 2010

I've run a script which I need to parse a lot of data through to a webapp.

I got this error with my ruby script, running through jruby, firing into an apache webapp:

Java/util/Array.java:#### java.lang.OutOfMemoryError: GC overhead limit exceeded (NativeException)

(Where #### was the line number)

I've looked at:

[URL]

I think it suggests I do:

Code:
-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps
-XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0
-XX:CMSIncrementalDutyCycle=10
My java version:

Code:

java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

Q1: How do I implement that into the java/util/Arrays.java file?

Q2: Is there a way of temporary making the Java VM/JDK have better handled GC overhead?

View 1 Replies View Related

General :: Finding A Bluetooth Stack /3g At&T

May 19, 2010

would like to install a Bluetooth and my AT&T 3g fob

View 1 Replies View Related

General :: How To Get Stack Size Of Running Process?

Apr 17, 2011

Can anyone tell me that how to get information about stack, allocated by kernel to a running process? for this ,is there any api function,any system call is available in ubuntu 8.04 ?

View 2 Replies View Related

Software :: Pam_limits(sudo:session): Wrong Limit Value 'unlimited' For Limit Type 'soft'

Dec 28, 2010

my secure log is flooding with these messages..

sudo: pam_limits(sudo:session): wrong limit value 'unlimited' for limit type 'hard'
Dec 28 22:42:29 yn54 sudo: pam_limits(sudo:session): wrong limit value 'unlimited' for limit type 'soft'
Dec 28 22:42:29 yn54 sudo: pam_limits(sudo:session): wrong limit value 'unlimited' for limit type 'hard'

View 3 Replies View Related

General :: Printing To A Progress Bar To The Terminal From Java/C++ - Stack Overflow?

Sep 18, 2011

I want to update the percentage progress of my program on the screen. I have a progress bar that I print. I add a * when the progress is more than 10%, but I also want to write the actual percentage correct up to every digit. However, I do not want to write a new number every time, since it will have the following effect:

1
2
3
4

Instead, I would like to just maintain one single figure on the screen that keeps getting updated. How do I do that? (... in Java/C++, but I think it's irrelevant)

View 2 Replies View Related

Server :: Limit The Suphp User Memory Limit?

May 12, 2010

I have a VPS server with 512 MB memory. The php.ini is set so script memory limit = 16 MB. However, I have noticed in my top report, instances like the following:

Quote:

5484 coldclim 25 0 46476 32m 5920 R 0.0 6.4 0:00.93 php

The bold number of 6.4 is the % of sever memory this process is using. 6.4 % of 512 MB of memory is about 32 MB of memory, so it appears that this isn't being limited by php.ini. Am I correct? This leads to the next question: Is there some way to limit the amount of memory a single suphp process can use? (Basically, something like the setting in php.ini which limits suphp processes in the same way.)

View 2 Replies View Related

General :: Command For Restarting Apache?

Jun 14, 2010

i know it's a very simple command to restart apache via ssh.

View 13 Replies View Related

General :: Restarting Network Devices Remotely?

Oct 4, 2010

I have a machine with several IP addresses with eth devices like eth0, eth0:1, eth0:2, eth0:3. Can I restart only eth0 without bringing down eth0:1? It would be really convenient to be able to log in via SSH on eth0:1 and restart eth0 without locking myself out or not being able to bring the network back up.

If I stop eth0, will that automatically stop all the others?

View 2 Replies View Related

General :: Server Not Restarting - Grub Error 15

May 24, 2011

i have a problem with my server, it was rebooted to get a special upgrade and it never turned on again. the support told me it's giving grub error 15, file not found. my server is a debian lenny 5 32bit one in raid 1. my menu.lst is:

[URL]

and fdisk -l gives:

Quote:

root@grml:/# fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders

[code]...

Disk /dev/md0 doesn't contain a valid partition table

View 17 Replies View Related

General :: Getting Error During Restarting Apache / Resolve This?

Feb 14, 2010

I have just compiled apache with the following command code...

View 4 Replies View Related

General :: Detect The Scsi Device Without Restarting?

Mar 25, 2010

I am attaching a LTO-3 tape drivce into my RHEL5 linux machine. Every time i used to restart my machine to detect the tape drive is there any way to rescan the buses to detect the newly attached scsi devices. In solaris "devfsadm" and "iostat" is there. I need the same kind of thing in linux.

View 2 Replies View Related

General :: Kubuntu Response Appears Only After Restarting?

Jan 1, 2011

I have Kubuntu 10.10. and it doesn't apply changes I did from terminal or any customization except after rebooting.

View 1 Replies View Related

General :: LMDE Skips Grub When Restarting?

Jun 21, 2011

I am running LMDE with xfce desktop version 4.8.0 and Windows 7 on a sony vaio. Everything works fine except for one minor inconvenience... When I am using xfce and want to reboot to windows, I have to click shutdown,turn the computer off then back on to get to the grub menu. If I click restart, it reboots back into xfce without ever showing the grub menu.

View 1 Replies View Related

General :: Prevent Restarting The Application After It's Crash?

Apr 1, 2010

Code:
#!/bin/bash
ulimit -c unlimited
while true; do ./executeable; done

When i will write this in console it will run executeable file and it will generate report : core.pid after crash so i can gdb the report. The application after crash will restart how can i prevent restarting the application after it's crash?

View 2 Replies View Related

General :: What's The Command To Reload .vimrc Without Restarting Vim

Mar 26, 2010

What's the command to reload .vimrc without restarting vim?

View 2 Replies View Related

General :: On Restarting - Grub Error 18 - Unable To Use My Computer ?

Apr 12, 2010

I have Win XP SP2 installed on my machine. I wanted to try Ubuntu and i created a CD an and wanted to install the OS. The CD booted and i selected the option of "using The OS together and selecting which one to boot" or something similar to that. Ubuntu and changed MBR and installed itself. However on restarting I am getting Error 18. Now i am unable to use my computer at all.

In recover my XP at the moment and how to install Linux so that it does not mess around with any other OS?

View 5 Replies View Related

General :: Restarting The Session And Going Directly To Login Window?

Feb 8, 2010

I have GShutdown 0.2 on ubuntu .when i put it on with some time it is just restarting the session and going directly to login window. "sudo shutdown -P -- --" is working properly so why the GShutdown 0.2 is not??

View 1 Replies View Related

General :: Set A Programm Auto Started When The Machine Is Restarting?

Jan 6, 2010

I've installed a JBoss-JON-Agent on a Linux-machine. Normally to start the JON-Agent I have to go to /opt/jboss/VGER1/Agent/bin/ and run ./ rhq-agent-wrapper.sh startBut sometimes the Linux-machine will be restarted and I have to start the JON-Agent manually.Now what I want is: when the Linux-machine is restarting, the JON-Agent will be restarted.

View 4 Replies View Related

General :: Process - Run A Script For A Specified Amount Of Time Before Stopping And Restarting

Jul 15, 2010

Possibly related to this previous question, I would like to be able to run a task for a specified amount of time, then stop/kill it, then start it again. Specifically, I run the Folding@Home application on my Linux workstation. Periodically, it will have trouble logging-in to the home server, and will sit idle for a long time, but not release memory/resources it has claimed (yes, I realize this is likely a bug in the tool, but I can't fix that currently). Typically just the act of killing and starting the tool will allow it to check-in again. So, I would like to be able to run something like:

run_for <time> ./fah6

Does such a tool exist, or should I write a wrapper than nukes the fah6 client after, say, a week and restart it?

View 4 Replies View Related

General :: Make Samba Read Updated Smb.conf File Without Restarting That?

Apr 5, 2011

I just made a minor change to the smb.conf file, is there a way to force the samba service to read that change without restarting samba completely?

View 6 Replies View Related

General :: Wireless Disabled After Installing Update And Restarting (dual Boot Ubuntu/win7)

Jun 21, 2011

the only issue that i have: the wireless is always disabled.

when i install new updates, the wireless comes back enabled and everything is fine but when i restart ubuntu its disabled again !!

i have a DELL studio 1537 laptop (broadcomm wifi card)with a win7 service pack 1/linux ubuntu 10.04 LTS dual boot.

View 11 Replies View Related

General :: How To Permanently Install Driver

Jun 22, 2010

I have installed two wireless-related drivers:

modprobe lib80211
insmod wl.ok

On rebooting, I find that these are no longer installed. How do I fix them in place?

View 2 Replies View Related

General :: Permanently Fix Settings For Second Monitor?

Sep 5, 2010

I just bought a 31.5" HDTV and have it connected to my laptop as a monitor. My laptop monitor is cracked and pretty much useless so I would like to be able to keep it turned off and stick with my new monitor. So far, I have managed to accomplish all of this, just one problem, I will need to go through too long a process for every login to set it all up again. I'm hoping someone can help me simplify this and have everything done automatically while Ubuntu is booting or even right after login.

Process:

Code:

$ cvt 1366 768 60
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
Modeline "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync

[code].....

View 1 Replies View Related

General :: Remove A Module Permanently?

Jun 13, 2010

I am a newbie and I am compiling a kernel in order to reduce the bootup time. I have a question as follows.

I am trying to remove a module. I used rmmod and modprobe. I can remove the module, but it is loaded again after reboot. How can I remove a module permanently? The module that I am trying to remove is lp.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved