Skip to Content

How to Reduce SAP Business one Addon Memory Consumption

Hello All,

My SAP Business One Add-on Consumes More than 200MB Memory. I want to reduce it to 10 MB approx..Is there any option for the same? I have Developed Add-on in VB.net.

Thanks and Regards,

Mahendrakumar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jun 29, 2017 at 06:06 AM

    Hi Mahendrakumar,

    When dealing with performance issues (be it speed, memory consumption, etc...) you ALWAYS have to use a profiler to check exactly what in your application is causing the issue.

    Without using a profiler everything is guesswork.

    Get yourself a memory profiler and have it analyze your application when it's running.

    Identify the objects taking up the memory and then invest in optimizing those objects.

    Good luck.

    Pedro Magueija

    LinkedIn | Twitter | Blog

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 28, 2017 at 01:28 PM

    Hi Mahendrakumar,

    It is a generic question. You need identifies in what part of code your add-on consumes more memory and dispose the objects after you use it, there is no generic approach to reduce the memory usage.

    Kind Regards,

    Diego Lother

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Diego,

      Thanks for reply. I will Debug my code and let you know.

      Mahendrakumar

  • Jun 28, 2017 at 01:33 PM

    Hi,

    I guess that you are using the old method to connect to DI API. When you are connecing to DI use the following method if you are not using

    oCompany = (SAPbobsCOM.Company)SBO_Application.Company.GetDICompany();
    Add comment
    10|10000 characters needed characters exceeded

    • The other one is the old way which increase the memory consumption, if you are using this one this is not the problem