on 01-17-2020 6:56 PM
Hello, this is our environment:
Kernel SAP : 721_EXT_REL
SAP GUI 7.30 on MS Windows 7 (90% clients)
SAP GUI 7.50 on MS Windows 7 (10% clients)
After about 5 years without major problems, around September 2019 the SAP GUI saplogon.exe process began to show massive memory leaks in some of our Windows 7 clients. Saplogon.exe process starts at under 100MB of memory used. Then, after some hours of use and memory eating, when the memory used by saplogon.exe reaches about 1.2GB, the SAP GUI starts to show a wide range of problems, from simple memory errors inside any transaction, to a sudden complete shutdown to the desktop of all the GUI windows, without any error message or log entry. It seems totally random and unrelated to the number or type of transactions active at the moment. Sometimes saplogon.exe, if left open with a couple of inactive transactions, starts to eat memory even at night time, while no one is actively using it. The next morning the user finds the saplogon.exe has reached the dreaded 1.2GB limit, all by itself. A couple clients have been upgraded from GUI 7.30 to 7.50 for the purpose of troubleshooting but with no results.
Before opening a ticket on the SAP support portal I wanted to know if someone may have had similar problems and if they found any solution that I, as a member of the IT team, may apply.
Thanks in advance.
Hi Alessandro.
From the screen shot it clearing show that the memory consumed by desktop by task manager and SAP system for single GUI session. it is not process memory leak.
Regards
Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi S Sriram,
Looking at the SM04 I can only tell that the amount of RAM consumed by the client is reported correctly (more or less) by the SAP system and by the client OS.
It is not clear though why the client uses so much RAM now?
Why it started using so much RAM since around september 2019, after years of work without problems?
Why other clients, using about the same transactions, do not use so much RAM?
In the very same screenshot you can see another client with 9 open sessions that uses less that 150MB RAM and other clients with 6 or 7 open session that even use less that 100MB RAM. Why the RAM usage in the subject client became so massively over the average since the last months?
Hi Alessandro.
All are depending up the usage of SAP system it will be loaded in the both pleases, on SAP system you can check the user id over all memory usage in transaction code SM04. and in the local pc you task-manager over all usage of memory. if possible could you share the screen shot of both?
Regards
SS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alessandro,
we had to make similar observations a few months ago. For a long time we suffered too. We were able to determine the locations of the memory increase, but nobody could help us. We did it ourselves.
We have the setting below
Help -> Settings -> F4 help-> System default switched to dialog (modal).
Since then there have been no problems with us. The only disadvantage is that this setting cannot be set centrally.
Regards,
ScriptMan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
1. what is the network bandwidth from client PC to SAP server?
2. Enable the SAP logon and Gui traces, check where you are getting loaded more, to my understand if the user is opening 8 / 10 session is over kill to SAP system. and also it may consumed more then 1 GB.
3. If possible inform user to use single session for an hour time, check the consumption of memory?
Regards
SS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi S Sriram,
1. The client is connected to the wired network through a 10/100 NIC and the throughput capacity is a steady 80Mbps on average. During normal client operations the actual network bandwidth used is less than 5% of the capacity.
2. I may agree that 8/10 sessions could be too many for the SAP system or the local RAM, but why it worked flawlessly for years then? And why it starts using only around 300/400Mb RAM for the first work hours then, at some point, suddenly it starts to constantly eat RAM until the 1.2Gb limit?
3. I will try and ask the user if he can work for one day limiting as much as possible the opening of multiple sessions and will see if this brings some benefits.
Hi alecontivalentini,
1st of all, raising a question thread in here SCN Forum is not opening ticket on SAP Support Portal. Here we discuss issues & try help each other. As you mentioned you are from the IT-support team in your organisation, I would recommend to engage your SAP-BASIS guy in this task & the SAP-BASIS guy can raise a OSS using your organisation S-User id
Coming back to you query,
There could be various reason for this like, corrupt SAP-GUI setup install, windows having corrupted setups installed. Did you try with a fresh SAP-GUI download from SAP Service Marketplace with using S-User details
Do you observe this issue on a Windows 10 fresh install system having SAP-GUI 7.50
Does the User has a custom SAP-scripts added to the SAP-GUI
Could you please check on the Event-Viewer log for the SAP-GUI & check if any details or error-code is written there for this
Could you also let us know what details do your SAP system have for the below SAP parameters,
rdisp/max_wprun_time
rdisp/gui_auto_logout
Thanks,
Kaushik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kaushik Debnath, thank you for your reply.
>Did you try with a fresh SAP-GUI download from SAP Service Marketplace with using S-User details
Yes. Latest 7.50 GUI download from the SAP Service Marketplace.
>Do you observe this issue on a Windows 10 fresh install system having SAP-GUI 7.50
Not exactly. I did observe this issue on Windows 10 but with GUI 7.30 patch level 8. Windows 10 client has not been upgraded to GUI 7.50 yet because upgrading did not resolve the problem on the Windows 7 client. I may try though.
>Does the User has a custom SAP-scripts added to the SAP-GUI
No custom scripts added to the SAPGUI.
>Could you please check on the Event-Viewer log for the SAP-GUI & check if any details or error-code is written there for this
Saplogon.exe related errors are loggend in the event log ONLY when the user forcibly closes the non responding GUI. In that case the generic event 1002 Application Hang is logged in the "Application" log, as for any other non responding application forcibly closed. Most of the times instead, when saplogon.exe reaches the 1.2GB limit, the whole SAPGUI closes down to desktop without any error message, while the system and other applications continue to work flawlessy.
>rdisp/max_wprun_time
Default value: 600
Profile value: 5400
Current value: 5400
>rdisp/gui_auto_logout
Default value: 0
Profile value: 0
Current value: 0
Hi alecontivalentini,
Based on your input, below would be my recomendation,
1st approach steps, set the below parameters,
rdisp/max_wprun_time=600(in DEFAULT.PFL),
rdisp/gui_auto_logout=600(in DEFAULT.PFL)
rdisp/keepalive=600(in DEFAULT.PFL)
Next approach steps,
Download a fresh Windows 7 professional setup from Microsoft portal(although there is a question for Windows 7 support from Microsoft) & install on a system or VM. Download SAPGUI 7.40 fresh & install & try
Download a fresh Windows 10 setup from Microsoft portal & install on a system or VM. Download SAPGUI 7.50 fresh & install & try
Thanks,
Kaushik
Hi Alessandro.
1. What is the SAPGUI patch level in SAPGUI Version 7.30 & 7.50 ? and Windows 7 client security patches are updated with latest one?
2. On Windows 7 client during the peak time how many SAP session are opened? what was the overall load in the client system?
Regards
SS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi S Sriram, thank you for your reply.
1. SAPGUI was originally 7.30 patch level 8 when the problem started. I upgraded to 7.50 patch level 13 for the purpose of troubleshooting but without results. I did a normal uninstall-reboot-reinstall process, without deleting all the remaining files/folders that were referencing to previous installation. The Windows 7 client had all the latest updates and, given it had worked correctly for years, the first thing that came to mind was some recent update causing incompatibility. So, for the purpose of troubleshooting, I uninstalled all the updates up to 2 months before the problem started but, still, with no results.
2. During peak time the user has around 8/10 open SAP windows. The overall load on the client system is always well below 50% for CPU usage, RAM used by all processes and disk I/O. The client has 16GB RAM so in facts, even when the saplogon.exe reaches its 1.2GB limit, there are still over 10GB of free RAM in Windows.
Hello Allessandro,
please use a current SAP GUI version (and not 7.30 or 7.50).
I am saying this, because there have been massive memory leaks in ALV Control and F4 Control that have been fixed
See SAP Notes 2821592 and 2787129.
If you can still reproduce the issues with a current patch, I recommend creating an incident.
Best regards,
Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alessandro.
1. It is not clear though why the client uses so much RAM now?
To my view it is normal, if you are open any other client tool more then 6 sessions it will consumed that much resource on the desktop PC, for example you can open the 6 windows of internet explorer and check the memory consumption
2. Why it started using so much RAM since around september 2019, after years of work without problems?
You may not noted.
3. Why other clients, using about the same transactions, do not use so much RAM?
Other clients are opened 8 /10 sessions?
4. Looking at the SM04 I can only tell that the amount of RAM consumed by the client is reported correctly (more or less) by the SAP system and by the client OS.
Yes, In the SM04 one session only same way you can check 8 / 10 session in the SAP system it will show you more then 1 GB Ram.
Regards
Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please reproduce the problem on a supported version of SAP GUI, then open a ticket at SAP support.
NB: I didn't find any SAP note which would tell how to troubleshoot memory leaks yourself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.