VB6 app runs slow on Windows 2019 compare to Windows 2003

Dhir Mehta 0 Reputation points
2024-03-13T19:27:53.42+00:00

We have VB6 application which run slow on Windows Server 2019 compare to Windows Server 2003.

Below steps are done on Windows 2019:

  • Compatibility setting is set to Windows XP for all users

VB6 app is exclude from Anti-virus application

Windows System Optimization for "High Performance"

Our VB6 application is simple Client Server architect . So we directly to dB query to SQL Server.

No Network lag was found between application server and DB server

DB query response time is same as for application on windows server 2003

But we still see clearly see application is responding slow as compare to it run on Windows Server 2003.

Windows for business | Windows Server | User experience | Other
{count} votes

3 answers

Sort by: Most helpful
  1. Jing Zhou 7,765 Reputation points Microsoft External Staff
    2024-03-14T09:45:42.0066667+00:00

    Hello,

    Thank you for posting in Q&A forum.

    Although you have taken some optimization steps and there are no obvious network lag or database query performance issues, there may still be some factors that cause VB6 applications to run slowly on Windows Server 2019.

    The following are some factors that may cause performance differences:

    Operating System Differences: There are significant differences in kernel and system architecture between Windows Server 2019 and Windows Server 2003, which may result in different performance of applications on different operating systems.

    Compatibility issue: Although you have set user compatibility to Windows XP and excluded VB6 applications from antivirus applications, there may still be other compatibility issues, especially for older versions of applications.

    Resource allocation: Although there is no significant lag between your network and database servers, there may still be other resource allocation issues. Ensure that the server has sufficient memory, CPU, and disk resources to meet the requirements of the application.

    Hardware differences: Windows Server 2019 may run in different hardware environments, which may be different from the hardware environment where Windows Server 2003 is located. The difference in hardware performance may affect the running speed of applications.

    Code optimization: Consider conducting performance analysis and optimization on VB6 applications to identify bottlenecks that may cause performance degradation, such as long running queries, memory leaks, or inefficient algorithms.

    In summary, in addition to the measures already taken, a more in-depth investigation and analysis of the application is needed to identify the root causes of potential performance differences and take corresponding measures to improve performance.

    Hope this answer can help you well.

    Best regards,

    Jill Zhou

    0 comments No comments

  2. twinBASIC programming 0 Reputation points
    2024-09-01T12:14:46.61+00:00

    Try asking on vbforums.com

    0 comments No comments

  3. twinBASIC programming 0 Reputation points
    2024-09-01T12:16:05.0466667+00:00

    VBForums may have more practical suggestions. There is a strong VB6 section there.

    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.