question

MarcoBonciolini-8225 avatar image
0 Votes"
MarcoBonciolini-8225 asked MotoX80 commented

Windows Server 2016 Slow RM Cobol APP

i have an old problem into a Windows Server 2016 without RDS, my client use ThinStuff.
It's a VM hosted on hyper-v server, it's fast, i have good performance about read/write and IOPS. Anyway i have so many problems with an old RM Cobol software, my client need to use that Software for months, then it will be replaced for a new software.
RM Cobol works on file, no database.

Read/Write
Read/Write
It's so slow, very slow and with procmon/procexp i see that use few resource, few i/o activity.. If i run another software like crystal disk mark or if i try to copy/paste files i see high i/o activity.


I googled and i seen that some have already had this problem in the past. A software that was working fine in 2012 was working very slowly in 2016 and all of them solved by changing a registry key:

setting registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TSFairShare\Disk

EnableFairShare to 0

But... this KEY (a service), isn't present if you haven't RDS Role like me.. and ThinSupport told me that they don't know how to "fix" it. Have you any idea?

windows-serverwindows-server-2016windows-server-hyper-v
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered MotoX80 commented

Hi @MarcoBonciolini-8225,

Instead of a registry, you can try the below steps to see if is helpful.

One of the most common reasons for Windows Server running with slow performance is too many programs running in the background. And you can open Task Manager to close unnecessary programs.

Some of the best methods to Improve Window’s Server Performance

Use a dedicated drive for the page file. By default, Windows creates a page file that it treats as virtual memory.
Keep your hard disks defragmented.
Use the NTFS file system.
Remove seldom-used utilities.
Disable unused services.
Adjust the server response




--If the reply is helpful, please Upvote and Accept it as an answer--

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
the problem is that server isn't slow.
If i try to use this old software based on RM Cobol, it read/write small files on disk, i see very low disk load.. it used few resources, like I/O piority.
When i try to use another software like crystal disk mark, or a backup, or an excel with complex calculations, i see an high I/O read and write data. You know what i mean?
It's like there is a bottleneck and this TSfairshare seems like the solution. a solution however that I cannot use

0 Votes 0 ·
MotoX80 avatar image MotoX80 MarcoBonciolini-8225 ·

Can you share a Process Monitor .PML file that captures the problem? In the PM filter uncheck "Process Name is System" if you have that entry. Also uncheck "Process Name is MsMpEng.exe" too.

Is Windows Defender or some other AV software scanning the files on write?

On the Hyper-V host run perfmon and look at the physical disk counters for the disk where the VM's virtual disks are stored. Set the refresh interval to something other than the default. Maybe 15 seconds. Do you see any disk queuing? Do the "Disk sec" numbers look good?


144969-capture.jpg


0 Votes 0 ·
capture.jpg (45.8 KiB)
ejsiron avatar image
0 Votes"
ejsiron answered

If the application was created when single-core CPUs were normal, it might have optimizations to remain responsive in that environment that cause it to slow down in a multi-core environment. You can try reducing the vCPU count of the VM to 1. If that doesn't do anything, then the slowness probably comes from the way that it uses I/O and there's nothing that can be done short of re-architecting the application for modern hardware.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarcoBonciolini-8225 avatar image
0 Votes"
MarcoBonciolini-8225 answered MotoX80 commented

I have a news.
I see that 2 user haven't this problem, all others (18 users) have this issue.
I tried to run this application and do something, time for result 15seconds
Then i tried to do the same with another user, time for result 120seconds.

All users have same ACL.. i'm very confused.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Unfortunately, that information is meaningless to forum users. We would have no idea what might be different with your users and what the application would do for each of them.

An analysis of a Process Monitor trace would be my recommended starting point.

0 Votes 0 ·