on 06-28-2017 2:18 PM
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
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();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The other one is the old way which increase the memory consumption, if you are using this one this is not the problem
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
10 | |
10 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.