Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
2194d390
Commit
2194d390
authored
Sep 12, 2017
by
John Eskew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove memory dump signal until meliae packaging issues are resolved.
parent
9d93c750
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
52 deletions
+0
-52
cms/wsgi.py
+0
-3
lms/wsgi.py
+0
-3
openedx/core/operations.py
+0
-40
requirements/edx/base.txt
+0
-3
requirements/edx/pre.txt
+0
-3
No files found.
cms/wsgi.py
View file @
2194d390
...
...
@@ -6,9 +6,6 @@ defuse_xml_libs()
import
contracts
contracts
.
disable_all
()
import
openedx.core.operations
openedx
.
core
.
operations
.
install_memory_dumper
()
import
os
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"cms.envs.aws"
)
...
...
lms/wsgi.py
View file @
2194d390
...
...
@@ -16,9 +16,6 @@ defuse_xml_libs()
import
contracts
contracts
.
disable_all
()
import
openedx.core.operations
openedx
.
core
.
operations
.
install_memory_dumper
()
import
os
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"lms.envs.aws"
)
...
...
openedx/core/operations.py
deleted
100644 → 0
View file @
9d93c750
"""
Workflows useful for reporting on runtime characteristics of the system
"""
import
gc
import
os
import
signal
import
tempfile
from
datetime
import
datetime
from
meliae
import
scanner
def
dump_memory
(
signum
,
frame
):
"""
Dump memory stats for the current process to a temp directory.
Uses the meliae output format.
"""
timestamp
=
datetime
.
now
()
.
isoformat
()
format_str
=
'{}/meliae.{}.{}.{{}}.dump'
.
format
(
tempfile
.
gettempdir
(),
timestamp
,
os
.
getpid
(),
)
scanner
.
dump_all_objects
(
format_str
.
format
(
'pre-gc'
))
# force garbarge collection
for
gen
in
xrange
(
3
):
gc
.
collect
(
gen
)
scanner
.
dump_all_objects
(
format_str
.
format
(
"gc-gen-{}"
.
format
(
gen
))
)
def
install_memory_dumper
(
dump_signal
=
signal
.
SIGPROF
):
"""
Install a signal handler on `signal` to dump memory stats for the current process.
"""
signal
.
signal
(
dump_signal
,
dump_memory
)
requirements/edx/base.txt
View file @
2194d390
...
...
@@ -68,9 +68,6 @@ httpretty==0.8.3
lazy==1.1
mako==1.0.2
Markdown>=2.6,<2.7
--allow-external meliae
--allow-unverified meliae
meliae==0.4.0
mongoengine==0.10.0
MySQL-python==1.2.5
networkx==1.7
...
...
requirements/edx/pre.txt
View file @
2194d390
...
...
@@ -12,6 +12,3 @@ pip==9.0.1
# Numpy and scipy can't be installed in the same pip run.
# Install numpy before other things to help resolve the problem.
numpy==1.6.2
# Needed for meliae
Cython==0.21.2
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