Replies: 4 comments 19 replies
-
I suppose I could use this as my help discussion.
The guilds is fine and expected. The issue is, the resident memory size of the python process steadily increases from between 1 and 2GB all the way up until it runs out of memory. So I suppose this is the stack memory if the heap is happily doing nothing out of the ordinary, do you know how I can debug and deal with this? |
Beta Was this translation helpful? Give feedback.
-
Here is my summary, |
Beta Was this translation helpful? Give feedback.
-
Ignore, reply solved this speculation. |
Beta Was this translation helpful? Give feedback.
-
@godlygeek I return with a couple of 220M native+aggregated files made via alpine and python3.11 debug.
Traceback (most recent call last):
File "/usr/bin/memray", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3.11/site-packages/memray/commands/__init__.py", line 137, in main
arg_values.entrypoint(arg_values, parser)
File "/usr/lib/python3.11/site-packages/memray/commands/common.py", line 264, in run
self.write_report(
File "/usr/lib/python3.11/site-packages/memray/commands/common.py", line 171, in write_report
reporter = self.reporter_factory(
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/memray/reporters/table.py", line 37, in from_snapshot
list(record.hybrid_stack_trace(max_stacks=1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "src/memray/_memray.pyx", line 338, in memray._memray.AllocationRecord.hybrid_stack_trace
File "src/memray/_memray.pyx", line 245, in memray._memray.hybrid_stack_trace
AssertionError DockerfileFROM alpine
WORKDIR /bot
RUN apk add --no-cache --update git netcat-openbsd iproute2 python3 python3-dbg py3-pip python3-dev gcc
# ENV DEBUGINFOD_URLS="https://debuginfod.elfutils.org/"
RUN python3 -m pip install poetry --break-system-packages
# COPY vibr/pyproject.toml vibr/poetry.lock ./
COPY vibr/requirements.txt ./
RUN pip install -r requirements.txt
COPY . .
RUN mkdir wow
CMD ["sh", "vibr/entrypoint.sh"] entrypoint.sh# unrelated migrations + network waiting
python3 -m memray run --aggregate --native -o wow/memray.$((1 + $RANDOM % 999)).bin -m vibr requirements.txtaiodns==3.0.0 ; python_version >= "3.10" and python_version < "4.0"
aiohttp==3.8.4 ; python_version >= "3.10" and python_version < "4.0"
aiohttp[speedups]==3.8.4 ; python_version >= "3.10" and python_version < "4.0"
aiosignal==1.3.1 ; python_version >= "3.10" and python_version < "4.0"
async-spotify @ git+https://github.com/ooliver1/AsyncSpotify@dc09920#subdirectory=src ; python_version >= "3.10" and python_version < "4.0"
async-timeout==4.0.2 ; python_version >= "3.10" and python_version < "4.0"
asyncache==0.3.1 ; python_version >= "3.10" and python_version < "4.0"
asyncpg==0.27.0 ; python_version >= "3.10" and python_version < "4.0"
attrs==23.1.0 ; python_version >= "3.10" and python_version < "4.0"
black==23.3.0 ; python_version >= "3.10" and python_version < "4.0"
brotli==1.0.9 ; python_version >= "3.10" and python_version < "4.0"
cachetools==5.3.0 ; python_version >= "3.10" and python_version < "4.0"
certifi==2023.5.7 ; python_version >= "3.10" and python_version < "4.0"
cffi==1.15.1 ; python_version >= "3.10" and python_version < "4.0"
charset-normalizer==3.1.0 ; python_version >= "3.10" and python_version < "4.0"
click==8.1.3 ; python_version >= "3.10" and python_version < "4.0"
colorama==0.4.6 ; python_version >= "3.10" and python_version < "4.0"
delarva @ git+https://github.com/ooliver1/delarva@0391e39 ; python_version >= "3.10" and python_version < "4.0"
dnspython==2.3.0 ; python_version >= "3.10" and python_version < "4.0"
docker==6.1.2 ; python_version >= "3.10" and python_version < "4.0"
docstring-parser==0.15 ; python_version >= "3.10" and python_version < "4.0"
email-validator==2.0.0.post2 ; python_version >= "3.10" and python_version < "4.0"
frozenlist==1.3.3 ; python_version >= "3.10" and python_version < "4.0"
hiredis==2.2.3 ; python_version >= "3.10" and python_version < "4.0"
humanfriendly==10.0 ; python_version >= "3.10" and python_version < "4.0"
idna==3.4 ; python_version >= "3.10" and python_version < "4.0"
inflection==0.5.1 ; python_version >= "3.10" and python_version < "4.0"
jinja2==3.1.2 ; python_version >= "3.10" and python_version < "4.0"
mafic @ git+https://github.com/ooliver1/mafic@master ; python_version >= "3.10" and python_version < "4.0"
markdown-it-py==3.0.0 ; python_version >= "3.10" and python_version < "4.0"
markupsafe==2.1.2 ; python_version >= "3.10" and python_version < "4.0"
mdurl==0.1.2 ; python_version >= "3.10" and python_version < "4.0"
memray==1.9.1 ; python_version >= "3.10" and python_version < "4.0"
mslex==0.3.0 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "win32"
multidict==6.0.4 ; python_version >= "3.10" and python_version < "4.0"
mypy-extensions==1.0.0 ; python_version >= "3.10" and python_version < "4.0"
nextcord @ git+https://github.com/boting-devs/nextcord@vibr ; python_version >= "3.10" and python_version < "4.0"
nextcord-ext-menus==1.5.6 ; python_version >= "3.10" and python_version < "4.0"
nextcord[speed] @ git+https://github.com/boting-devs/nextcord@vibr ; python_version >= "3.10" and python_version < "4.0"
ooliver-botbase[db] @ git+https://github.com/ooliver1/botbase@no-psutil ; python_version >= "3.10" and python_version < "4.0"
orjson==3.8.14 ; python_version >= "3.10" and python_version < "4.0"
packaging==23.1 ; python_version >= "3.10" and python_version < "4.0"
pathspec==0.11.1 ; python_version >= "3.10" and python_version < "4.0"
piccolo[orjson,postgres,uvloop]==0.111.1 ; python_version >= "3.10" and python_version < "4.0"
platformdirs==3.5.1 ; python_version >= "3.10" and python_version < "4.0"
prometheus-async==22.2.0 ; python_version >= "3.10" and python_version < "4.0"
prometheus-client==0.17.0 ; python_version >= "3.10" and python_version < "4.0"
pycares==4.3.0 ; python_version >= "3.10" and python_version < "4.0"
pycparser==2.21 ; python_version >= "3.10" and python_version < "4.0"
pydantic[email]==1.10.8 ; python_version >= "3.10" and python_version < "4.0"
pygments==2.16.1 ; python_version >= "3.10" and python_version < "4.0"
pyreadline3==3.4.1 ; sys_platform == "win32" and python_version >= "3.10" and python_version < "4.0"
python-dotenv==1.0.0 ; python_version >= "3.10" and python_version < "4.0"
pywin32==306 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "win32"
pyyaml==6.0.1 ; python_version >= "3.10" and python_version < "4.0"
redis[hiredis]==4.5.5 ; python_version >= "3.10" and python_version < "4.0"
requests==2.31.0 ; python_version >= "3.10" and python_version < "4.0"
rich==13.5.2 ; python_version >= "3.10" and python_version < "4.0"
targ==0.3.8 ; python_version >= "3.10" and python_version < "4.0"
tomli==2.0.1 ; python_version >= "3.10" and python_version < "4.0"
typing-extensions==4.6.1 ; python_version >= "3.10" and python_version < "4.0"
urllib3==2.0.2 ; python_version >= "3.10" and python_version < "4.0"
uvloop==0.17.0 ; python_version >= "3.10" and python_version < "4.0"
websocket-client==1.5.2 ; python_version >= "3.10" and python_version < "4.0"
wrapt==1.15.0 ; python_version >= "3.10" and python_version < "4.0"
yarl==1.9.2 ; python_version >= "3.10" and python_version < "4.0" memray.zip |
Beta Was this translation helpful? Give feedback.
-
This initial post is outdated, this is the current comment thread.
I have a 91M memray bin file i converted into html using flamegraph, which itself is 605M in size. How do you think I should process this?
Table is basically the same. I would like to know if there is a way to see if the browser is even attempting to process this data or not, since I see it is all in a script.
Beta Was this translation helpful? Give feedback.
All reactions