Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profit organisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

MemoryError when trying to print the Dynamic General Ledget report - 5,700,000 journal items

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
developmentperformanceaccountingdebugerrorErrorTraceback
1 Beantwoorden
338 Weergaven
Avatar
rc_codes

I get this error when trying to print the Dynamic General Ledger report. After loading for some time, it displays a “Memory Error” on the server, although it loads successfully on the local system. How can we fix this memory issue? (The server contains about 5,700,000 journal items.)

0
Avatar
Annuleer
Christoph Farnleitner

Self hosted or hosted by Odoo? Version of Odoo? In general, there are options in the conf file to set allowed resources.

rc_codes
Auteur

Odoo version 16, self hosted

Ray Carnes (ray)

"MemoryError" is not a question. A question is a substantial phrase that ends with "?"

We get close to 1,000 posts a month and not everyone will open a post to find out what your question is.

I have edited your post to make the title a question.

In the future, please consider (1) using a Question that makes it clear what you ask without requiring people to open your post and (2) adding Tags. This will often increase the chances people will respond and also make everything clearer for others who may come along later searching for the same thing.

Failing that, you can paste your future posts into an AI Chatbot and ask it to "please generate a question of no more than 16 words that summarizes what I am asking" and use that as your question.

See also https://www.odoo.com/forum/help-1/meta-why-do-some-questions-get-answers-and-others-do-not-25620

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Beste antwoord

Hi,

The “Memory Error” occurs because the Dynamic General Ledger report tries to load all 5.7 million journal items into memory at once. While this may work on a local system with fewer records or more available RAM, the production server likely runs out of memory during processing. This is common when databases grow large and Odoo attempts to compute totals, filters, or PDF exports in memory instead of streaming results.

To fix this, start by optimizing your server resources — increase available RAM and, if possible, enable swap space to prevent crashes. Next, limit the data volume being processed at once: filter the report by smaller date ranges, journals, or accounts to reduce the load. You can also disable “load all entries” options if available in the report filters.

For a long-term solution, consider enabling PostgreSQL optimization (e.g., increasing work_mem and shared_buffers), and make sure your database has proper indexes on key fields like move_id, date, and account_id. If you are using Odoo Enterprise, you can schedule background reports or use spreadsheet-style reports to handle large data sets more efficiently.

In summary, this issue is caused by insufficient memory for such a large dataset. Filtering report ranges, improving server memory, and tuning PostgreSQL performance are the most effective ways to resolve it.


Hope it helps

0
Avatar
Annuleer
rc_codes
Auteur

These are my current server resources:

nproc
8

free -h
total used free shared buff/cache available
Mem: 15Gi 1.2Gi 3.6Gi 162Mi 10Gi 13Gi
Swap: 0B 0B 0B

i have tried the swap, it removed the error and kept loading for a long time but did not give any results.

Codesphere Tech

Not seen the swap memory in your details.. you removed it?

Codesphere Tech

Have you update the below parameter in odoo.conf?
workers = 8
limit_memory_soft = 2684354560
limit_memory_hard = 3221225472
limit_request = 8192
limit_time_cpu = 1200
limit_time_real = 2400
max_cron_threads = 1

And also try this:https://pgtune.leopard.in.ua/

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
how to put fields under a single condition in form view (odoo version 17)
development accounting debug attrs
Avatar
Avatar
Avatar
2
jun. 25
3440
Hide invoice header and footer in odoo v17 Enterprise
development configuration accounting debug
Avatar
Avatar
1
jun. 25
1555
How to archive records in a model ? Opgelost
development setup accounting debug
Avatar
1
jan. 25
2587
Help with Subscription Webhooks
webclient javascript development accounting debug
Avatar
Avatar
1
okt. 25
754
((@!@Humano en vivo))¿Cómo puedo hablar con una persona real en Copa? C*O*P*A
opportunities configuration performance accounting debug chrome
Avatar
0
nov. 25
12
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now