Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Memory Error While Exporting 200k product variants

Subscribe

Get notified when there's activity on this post

This question has been flagged
configurationmemorymemory_usagelargescaleOdoo13.0
2 Replies
12266 Views
Avatar
amir ehsan

Hi 

i am using odoo 13 and when i'm trying to export product variants with specified fields i get this error . i tried to change memory limits for workers but the problem is still there
any ideas on how to properly config odoo to solve the issue ?

this is my config file

xmlrpc_port = 8069

limit_request = 8192

limit_time_cpu = 600

limit_time_real = 1200

max_cron_threads = 1

limit_memory_hard = 5368706371

limit_memory_soft = 4831835734


and this is the error that pops out every time : 

2020-09-30 10:44:53,228 3883 INFO products_test odoo.addons.base.models.ir_cron: Job `Mail: Fetchmail Service` done. 

2020-09-30 10:45:08,049 3883 INFO products_test werkzeug: 127.0.0.1 - - [30/Sep/2020 10:45:08] "POST /longpolling/poll HTTP/1.1" 200 - 8 0.044 50.113

2020-09-30 10:45:58,231 3883 INFO products_test werkzeug: 127.0.0.1 - - [30/Sep/2020 10:45:58] "POST /longpolling/poll HTTP/1.1" 200 - 8 0.058 50.097

2020-09-30 10:46:48,569 3883 INFO products_test werkzeug: 127.0.0.1 - - [30/Sep/2020 10:46:48] "POST /longpolling/poll HTTP/1.1" 200 - 8 0.044 50.077

2020-09-30 10:47:38,762 3883 INFO products_test werkzeug: 127.0.0.1 - - [30/Sep/2020 10:47:38] "POST /longpolling/poll HTTP/1.1" 200 - 8 0.043 50.116

2020-09-30 10:48:28,931 3883 INFO products_test werkzeug: 127.0.0.1 - - [30/Sep/2020 10:48:28] "POST /longpolling/poll HTTP/1.1" 200 - 8 0.050 50.082

2020-09-30 10:48:53,621 3883 INFO products_test odoo.addons.base.models.ir_cron: Starting job `Mail: Fetchmail Service`. 

2020-09-30 10:48:53,705 3883 INFO products_test odoo.addons.fetchmail.models.fetchmail: start checking for new emails on imap server Khooger Income 

2020-09-30 10:48:56,139 3883 INFO products_test odoo.addons.fetchmail.models.fetchmail: General failure when trying to fetch mail from imap server Khooger Income. 

Traceback (most recent call last):

  File "/home/khooger/Programming/Projects/Odoo/odoo13/addons/fetchmail/models/fetchmail.py", line 162, in fetch_mail

    imap_server = server.connect()

  File "/home/khooger/Programming/Projects/Odoo/odoo13/addons/fetchmail/models/fetchmail.py", line 108, in connect

    connection.login(self.user, self.password)

  File "/usr/lib/python3.6/imaplib.py", line 598, in login

    raise self.error(dat[-1])

imaplib.IMAP4.error: b'[AUTHENTICATIONFAILED] Authentication failed.'

2020-09-30 10:48:56,236 3883 INFO products_test odoo.addons.base.models.ir_cron: Job `Mail: Fetchmail Service` done. 

2020-09-30 10:49:19,624 3883 INFO products_test werkzeug: 127.0.0.1 - - [30/Sep/2020 10:49:19] "POST /longpolling/poll HTTP/1.1" 200 - 8 0.044 50.118

2020-09-30 10:49:35,446 3883 WARNING ? odoo.service.server: Server memory limit (4990951424) reached. 

2020-09-30 10:49:36,519 3883 WARNING ? odoo.service.server: Server memory limit (5004058624) reached. 

2020-09-30 10:49:37,602 3883 WARNING ? odoo.service.server: Server memory limit (5016903680) reached. 

2020-09-30 10:49:38,675 3883 WARNING ? odoo.service.server: Server memory limit (5030010880) reached. 

2020-09-30 10:49:39,747 3883 WARNING ? odoo.service.server: Server memory limit (5043118080) reached. 

2020-09-30 10:49:40,805 3883 WARNING ? odoo.service.server: Server memory limit (5056487424) reached. 

2020-09-30 10:49:41,882 3883 WARNING ? odoo.service.server: Server memory limit (5069856768) reached. 

2020-09-30 10:49:42,965 3883 WARNING ? odoo.service.server: Server memory limit (5082963968) reached. 

2020-09-30 10:49:44,032 3883 WARNING ? odoo.service.server: Server memory limit (5096071168) reached. 

2020-09-30 10:49:45,090 3883 WARNING ? odoo.service.server: Server memory limit (5109178368) reached. 

2020-09-30 10:49:46,166 3883 WARNING ? odoo.service.server: Server memory limit (5122547712) reached. 

2020-09-30 10:49:47,244 3883 WARNING ? odoo.service.server: Server memory limit (5135917056) reached. 

2020-09-30 10:49:48,312 3883 WARNING ? odoo.service.server: Server memory limit (5148762112) reached. 

2020-09-30 10:49:49,394 3883 WARNING ? odoo.service.server: Server memory limit (5162393600) reached. 

2020-09-30 10:49:50,477 3883 WARNING ? odoo.service.server: Server memory limit (5175762944) reached. 

2020-09-30 10:49:51,555 3883 WARNING ? odoo.service.server: Server memory limit (5188870144) reached. 

2020-09-30 10:49:52,638 3883 WARNING ? odoo.service.server: Server memory limit (5201453056) reached. 

2020-09-30 10:49:53,714 3883 WARNING ? odoo.service.server: Server memory limit (5214298112) reached. 

2020-09-30 10:49:54,787 3883 WARNING ? odoo.service.server: Server memory limit (5247254528) reached. 

2020-09-30 10:49:55,871 3883 WARNING ? odoo.service.server: Server memory limit (5260361728) reached. 

2020-09-30 10:49:56,939 3883 WARNING ? odoo.service.server: Server memory limit (5273206784) reached. 

2020-09-30 10:49:58,022 3883 WARNING ? odoo.service.server: Server memory limit (5286576128) reached. 

2020-09-30 10:49:59,093 3883 WARNING ? odoo.service.server: Server memory limit (5299683328) reached. 

2020-09-30 10:50:00,177 3883 WARNING ? odoo.service.server: Server memory limit (5312528384) reached. 

2020-09-30 10:50:01,239 3883 WARNING ? odoo.service.server: Server memory limit (5325111296) reached. 

2020-09-30 10:50:02,312 3883 WARNING ? odoo.service.server: Server memory limit (5337169920) reached. 

2020-09-30 10:50:03,329 3883 WARNING ? odoo.service.server: Server memory limit (5348966400) reached. 

2020-09-30 10:50:04,392 3883 WARNING ? odoo.service.server: Server memory limit (5361287168) reached. 

2020-09-30 10:50:05,465 3883 WARNING ? odoo.service.server: Server memory limit (5368627200) reached. 

2020-09-30 10:50:06,145 3883 ERROR products_test odoo.addons.web.controllers.main: An exception occured during an http request 

Traceback (most recent call last):

  File "/home/khooger/Programming/Projects/Odoo/odoo13/addons/web/controllers/main.py", line 110, in wrap

    return f(*args, **kwargs)

  File "/home/khooger/Programming/Projects/Odoo/odoo13/addons/web/controllers/main.py", line 1900, in index

    return self.base(data, token)

  File "/home/khooger/Programming/Projects/Odoo/odoo13/addons/web/controllers/main.py", line 1852, in base

    export_data = records.export_data(field_names).get('datas',[])

  File "/home/khooger/Programming/Projects/Odoo/odoo13/odoo/models.py", line 898, in export_data

    return {'datas': self._export_rows(fields_to_export)}

  File "/home/khooger/Programming/Projects/Odoo/odoo13/odoo/models.py", line 855, in _export_rows

    lines2 = value._export_rows(fields2, _is_toplevel_call=False)

  File "/home/khooger/Programming/Projects/Odoo/odoo13/odoo/models.py", line 862, in _export_rows

    lines += lines2[1:]

MemoryError

2020-09-30 10:50:07,743 3883 INFO products_test werkzeug: 127.0.0.1 - - [30/Sep/2020 10:50:07] "POST /web/export/xlsx HTTP/1.1" 500 - 637 0.942 462.320

2020-09-30 10:50:08,743 3883 INFO ? odoo.service.server: Dumping stacktrace of limit exceeding threads before reloading 

2020-09-30 10:50:08,758 3883 INFO ? odoo.tools.misc: 

# Thread: <_MainThread(MainThread, started 140513909024576)> (db:n/a) (uid:n/a) (url:n/a)

File: "/home/khooger/Programming/Projects/Odoo/odoo13/odoo-bin", line 8, in <module>

  odoo.cli.main()

File: "/home/khooger/Programming/Projects/Odoo/odoo13/odoo/cli/command.py", line 60, in main

  o.run(args)

File: "/home/khooger/Programming/Projects/Odoo/odoo13/odoo/cli/server.py", line 178, in run

  main(args)

File: "/home/khooger/Programming/Projects/Odoo/odoo13/odoo/cli/server.py", line 172, in main

  rc = odoo.service.server.start(preload=preload, stop=stop)

File: "/home/khooger/Programming/Projects/Odoo/odoo13/odoo/service/server.py", line 1276, in start

  rc = server.run(preload, stop)

File: "/home/khooger/Programming/Projects/Odoo/odoo13/odoo/service/server.py", line 535, in run

  dumpstacks(thread_idents=[thread.ident for thread in self.limits_reached_threads])

File: "/home/khooger/Programming/Projects/Odoo/odoo13/odoo/tools/misc.py", line 957, in dumpstacks

  for line in extract_stack(stack): 


0
Avatar
Discard
Avatar
Uday
Best Answer

I am encountering a similar error while trying to uninstall a module in Odoo, which involves lock timeouts and registry loading failures.

0
Avatar
Discard
Avatar
MUHAMMAD Imran
Best Answer

limit_memory_hard = 5368706371

limit_memory_soft = 4831835734


increase this memory.

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Wkhtmltopdf failed (error code: -11). Memory limit too low or maximum file number of subprocess reached. Message : b''
memory memory_usage pdfreport
Avatar
Avatar
1
Jun 24
5111
v13: Error: most likely hit a memory limit
report memory Odoo13.0
Avatar
Avatar
1
Dec 23
5487
Different between limit_memory_hard and limit_memory_soft Solved
configuration memory_usage workers ram
Avatar
Avatar
Avatar
Avatar
3
Oct 24
34280
res.config.settings documentation Solved
configuration help Odoo13.0 Odoo13
Avatar
Avatar
Avatar
2
Dec 24
33248
how can I increase the memory limit Solved
limit memory memory_usage odooV12
Avatar
Avatar
1
Feb 19
21170
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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