RDFLib / rdflib

RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
https://rdflib.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.15k stars 555 forks source link

Memory leak under Python 3.8.10 ? #2418

Open ThomasHoppe opened 1 year ago

ThomasHoppe commented 1 year ago

Loading ESCO-v1.1.1.ttl (737 MB) under Python 3.6 and rdflib 6.3.2 consumes 2.6 GB on Windows 11 System running Ubuntu under WSL-2

Under Python 3.8.2 and rdflib 6.3.2 consumes more than 6 GB bevor it dies, under Windows 10 under Ubuntu 10.04.6 LTS (5.15.90.1-microsoft-standard-WSL2 X86-64). Either the jupyter notebook kernel dies or python get killed ... see below

`Python 3.8.10 (default, Mar 13 2023, 10:26:41) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import rdflib print(rd>>> print(rdflib.version) 6.3.2

from rdflib import Graph rdflib.namespace import Namespace, NamespaceManager import re g = Graph() g.parse("esco-v1.1.1.ttl", format='ttl') Killed`

alessio-locatelli commented 1 month ago

@ThomasHoppe Is this still a problem? Can you show pip freeze output? Otherwise, please close the issue.

ThomasHoppe commented 1 month ago

Under Python 3.12.4 and rdflib 7.0.0 vanished