Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
79f5f224
Commit
79f5f224
authored
Feb 28, 2013
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check memory size only for the server under test
parent
5138cb69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
measure_memory_spec.rb
misc/spec/mix/measure_memory_spec.rb
+2
-2
No files found.
misc/spec/mix/measure_memory_spec.rb
View file @
79f5f224
...
@@ -118,10 +118,10 @@ describe "Measure Memory" do
...
@@ -118,10 +118,10 @@ describe "Measure Memory" do
per_subscriber
=
0
per_subscriber
=
0
EventMachine
.
run
do
EventMachine
.
run
do
memory_1
=
`ps -eo rss,cmd | grep -E 'ngin[xX] -c '`
.
split
(
' '
)[
0
].
to_i
memory_1
=
`ps -eo rss,cmd | grep -E 'ngin[xX] -c
#{
conf
.
configuration_filename
}
'`
.
split
(
' '
)[
0
].
to_i
subscriber_in_loop_with_limit
(
channel
,
headers
,
body
,
1000
,
1499
)
do
subscriber_in_loop_with_limit
(
channel
,
headers
,
body
,
1000
,
1499
)
do
sleep
(
1
)
sleep
(
1
)
memory_2
=
`ps -eo rss,cmd | grep -E 'ngin[xX] -c '`
.
split
(
' '
)[
0
].
to_i
memory_2
=
`ps -eo rss,cmd | grep -E 'ngin[xX] -c
#{
conf
.
configuration_filename
}
'`
.
split
(
' '
)[
0
].
to_i
per_subscriber
=
((
memory_2
-
memory_1
).
to_f
/
500
)
*
1000
per_subscriber
=
((
memory_2
-
memory_1
).
to_f
/
500
)
*
1000
...
...
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