cancel
Showing results for 
Search instead for 
Did you mean: 

how to release the memory of DI Server

Former Member
0 Kudos

when I use the DI server to import one order that may be more than 1000 lines .

and system the memory goes to 1.6G , when the order finished , the memory can't redure , how can I release the memory.

thanks .

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

can SBO Patch 41 solve the di server memory problem ?

Former Member
0 Kudos

Dave.

Try to use empty.exe utility of Windows Resource Kits.

From Command Prompt use: empty <PID>

May be it can be quick solution.

BR

Sierdna S.

Former Member
0 Kudos

thanks , how I add the empty.exe in my codes .

Former Member
0 Kudos

After your procedure call Shell function with parameters bellow and Style = AppWinStyle.Hide


Public Function Shell( _
   ByVal Pathname As String, _ 
   Optional ByVal Style As AppWinStyle = AppWinStyle.MinimizedFocus, _ 
   Optional ByVal Wait As Boolean = False, _ 
   Optional ByVal Timeout As Integer = -1 _
) As Integer

Example:


try
  Dim iRet As Integer 
  iRet = Shell("""<path>\empty.exe"" <Process_ID>", True, AppWinStyle.Hide)
catch ex As Exception
  ' log exception
end try

Former Member
0 Kudos

Hi Dave

What's the Patch Level of your DI Server?

There are several memory leak issues in the old version of DI.

Please update the latest PL then check if the issue can be solved.

Regards,

Syn Qin

SAP Business One Forums Team

Former Member
0 Kudos

Thanks .

SAP Business One 05B PL :41

I don't know where get the di server patch . maybe It's 6.80.320

paul_feeney
Explorer
0 Kudos

To check the version of the DI Server:

C:\Program Files\SAP\SAP Business One ServerTools\DI_Server -> right click on the file B1DI_Server.exe -> properties -> version tab -> product version item.

This value should be the same as the DI API:

C:\Program Files\SAP\SAP Business One\DI API\2005\ -> right-click SAPbobsCOM2005.dll -> properties -> version tab -> product version item

If the DI Server has an older product version, you will need to reinstall from the SBO Patch 41 upgrader files (Packages -> Server Tools).

Note: empty.exe will not release the memory form the system completely - it moves it from RAM to the Paging files.

Regards,

Paul Feeney

SAP Business One Forums Team