Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
ebb66701
Commit
ebb66701
authored
Feb 25, 2013
by
Dag Haavi Finstad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set ulimit -u (RLIMIT_NPROC) to unlimited for RHEL init script.
parent
6a9302c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
varnish.initrc
redhat/varnish.initrc
+4
-0
varnish.sysconfig
redhat/varnish.sysconfig
+3
-0
No files found.
redhat/varnish.initrc
View file @
ebb66701
...
...
@@ -56,6 +56,10 @@ start() {
# Varnish wants to lock shared memory log in memory.
ulimit
-l
${
MEMLOCK
:-
82000
}
# Maximum number of threads (default in CentOS is 1024, which
# is often too small for varnish)
ulimit
-u
${
NPROCS
:-
unlimited
}
# $DAEMON_OPTS is set in /etc/sysconfig/varnish. At least, one
# has to set up a backend, or /tmp will be used, which is a bad idea.
if
[
"
$DAEMON_OPTS
"
=
""
]
;
then
...
...
redhat/varnish.sysconfig
View file @
ebb66701
...
...
@@ -11,6 +11,9 @@ NFILES=131072
# Default log size is 82MB + header
MEMLOCK=82000
# Maximum number of threads (for ulimit -u)
NPROCS="unlimited"
# Maximum size of corefile (for ulimit -c). Default in Fedora is 0
# DAEMON_COREFILE_LIMIT="unlimited"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment