graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #00519
[Question #133390]: graphite is giving a MemoryError traceback on a server with 10G of free memory
New question #133390 on Graphite:
https://answers.launchpad.net/graphite/+question/133390
So after a friend (who works for a large ISP) who uses graphite convinced me it was amazing, I set it up. I followed the install doc and got graphite running. Graphite is running with the run-devel-server script, carbon with --debug, and the example client injects metrics every 30 seconds.
Whenever logging into graphite, the main graph is broken and I'm unsure why. In the runserver output, I saw things like:
[09/Nov/2010 17:08:36] "GET /render HTTP/1.1" 500 77007
[09/Nov/2010 17:08:36] "GET /render/?width=586&height=303&_salt=1289351315.838 HTTP/1.1" 500 78074
Lucky for me, I've got some django dev experience and a lot of django debugging experience. I mudged settings.py to point at the django-sentry[1] server we already have setup for many of our other django apps. It gave me this traceback:
Request Method: GET
Request URL: http://labserver.int:8080/render/?width=586&height=303&_salt=1289351320.119
Python Version:
Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response
100. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/graphite/webapp/graphite/render/views.py" in renderView
128. image = doImageRender(requestOptions['graphClass'], graphOptions)
File "/opt/graphite/webapp/graphite/render/views.py" in doImageRender
283. img = graphClass(**graphOptions)
File "/opt/graphite/webapp/graphite/render/glyph.py" in __init__
140. self.drawText("No Data", x, y, align='center')
File "/opt/graphite/webapp/graphite/render/glyph.py" in drawText
200. extents = self.getExtents(text)
File "/opt/graphite/webapp/graphite/render/glyph.py" in getExtents
172. F = self.ctx.font_extents()
Exception Type: MemoryError at /render/?width=586&height=303&_salt=1289351320.119
Exception Value:
graphite@xxxxxxxxxxxxx: graphite $ free -m
total used free shared buffers cached
Mem: 11906 1464 10441 0 194 833
-/+ buffers/cache: 437 11469
Swap: 8189 0 8189
What am I doing wrong to cause this? Thanks!
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.