32 bit application in Windows 2022 server

Shankaranarayanan Vinayagam 0 Reputation points
2024-11-11T10:17:29.28+00:00

We are using 32 bit application and facing slowness in our application when using windows 2022 server. When we check in task manager, our application is split into multiple processes and executed the application. This is not happening in windows 2016 server and 32 bit application does not face slowness. Kindly help to sort out this issue.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,564 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Wesley Li 10,985 Reputation points
    2024-11-20T07:27:29.44+00:00

    Hello,

    Did the slowness only occur with the specific 32 bit application or all the applicaitons? Have we tried to update the software to the latest version?

    If it is possible, please try to run the application in clean boot environment.

    https://support.microsoft.com/en-us/topic/how-to-perform-a-clean-boot-in-windows-da2f9573-6eec-00ad-2f8a-a97a1807f3dd

    Try to run the application in compatibility mode by right click the applicaiton and choose the "Property" option.

    0 comments No comments

  2. Shankaranarayanan Vinayagam 0 Reputation points
    2024-12-04T11:43:47.8866667+00:00

    We tried the suggested compatibility setting however there is no improvement in all the cases,

    our 32-bit application (Size 16.9MB Single Exe) behaves same delay in

    Windows server 2022 (Processor: Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz, 2200 MHz, 2 Core(s), 2 Logical Processor(s) RAM: 16.0 GB)

    when compared to

    Windows Server 2016 (Processor: Intel(R) Xeon(R) Gold 6240 CPU @ 2.60GHz, 2594 Mhz, 2 Core(s), 2 Logical Processor(s) RAM: 16.0 GB).

    1. RMC Properties on our 32-bit application
    2. Click Compatibility tab.
    3. Under compatibility mode, select the checkbox

    Run this program in compatibility mode for :

    Windows 8

    and

    Windows 7

    This has the same performance timing before and after setting and does not make any difference.

    Additional observation to assist you(Microsoft):

    In windows server 2016, when we run our 32-bit application, the memory consumption by the process is 7.6 MB with CPU is 50% and has single process.

    In windows server 2022, when we run our 32-bit application, the memory consumption by the process is 6.2 MB with CPU is 25% and it split into

    multiple processes in the task manager.

    With the above information will you be able to provide some insight on the cause of our performance delay issue?

    0 comments No comments

  3. Michael Taylor 56,271 Reputation points
    2024-12-04T15:20:53.4866667+00:00

    If you have a single process then Windows isn't going to split it into multiple processes. That wouldn't work for the vast majority of apps and doesn't really solve anything. If you run your app once and it starts multiple processes then either your app is doing it or something else is running the process multiple times. If you use a tool like Process Explorer then you can see the process tree to try and figure out who is starting up multiple instances of your app.

    If you are instead talking about multiple threads, which lines up with your CPU percentages, then that is possible but we have no knowledge of the threaded-ness of your app so we'd need more information.

    As far as performance goes it sort of looks like you were previously using half the CPU and now threading has kicked in and you're using less CPU but your threads are running slower because of locking. Since we have no knowledge of your app it is hard to say. Looking closer at thread counts, CPU usage, memory usage and contention (using Process Explorer or what is available in Task manager) would help narrow things down without fully debugging the code.


  4. Shankaranarayanan Vinayagam 0 Reputation points
    2024-12-19T03:30:15.09+00:00

    Thank you for the insights. You are absolutely right and since threading has been introduced, it's likely leading to more contention, which is slowing things down despite the reduced CPU usage. As you suggested, closely monitoring the thread counts, CPU usage, and memory usage using tools like Process Monitor and Task Manager,Please find below the screenshot of windows 2016 server and windows 2022 server with thread mechanism using same application and same database.

    Following is the area where Threads waiting excessively on shared resources which could explain the slower thread performance.

    Windows 2016 Server:

    Windows_2016_Server.png

    Windows 2022 Server:

    Windows_2022_Server.png

    It would be helpful if you could provide information on the difference in cycles when using same application, same connectivity mechanism and same database?

    Thank you very much for your help. Much Appreciated.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.