A thread consumes CPU

Questions about Cobian Reflector
Post Reply
acerot
Posts: 14
Joined: 03 Oct 2021, 23:16

A thread consumes CPU

Post by acerot »

All of a sudden a Cobian.Reflector.Service.exe thread consumes continuously about 8% of CPU (see pictures). Looking at the Cobian UI Log tab no backup task is currently running. Strange is that not much is happening in the Process Monitor, just some threads create/exit. Can I do anything more for investigation?
Attachments
2021-10-16_224534.jpg
2021-10-16_224534.jpg (140.93 KiB) Viewed 3613 times
2021-10-16_224050.jpg
2021-10-16_224050.jpg (80.24 KiB) Viewed 3613 times
2021-10-16_223934.jpg
2021-10-16_223934.jpg (153.62 KiB) Viewed 3613 times
acerot
Posts: 14
Joined: 03 Oct 2021, 23:16

Re: A thread consumes CPU

Post by acerot »

If I stop the Cobian service via the Cobian Service Control this faulty thread keeps running. Then I can't start the service again as it says that is it already started (see picture). Looking at the Windows service manager the service state stays "Stopping...". Looking at the Windows event viewer there is nothing much neither in Application nor in System log.
The only way out is killing the service in the task manager (the service manager is not helping). After starting the service again it works well (no excessive CPU taken).
Attachments
2021-10-16_230729.jpg
2021-10-16_230729.jpg (74.74 KiB) Viewed 3612 times
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: A thread consumes CPU

Post by cobian »

Interesting... I guess running in verbose log may show something of this activity... If no backup is running at all, my guess is that there is some thread that's stuck counting files... but why?
--
Luis Cobian
Cobian Backup's creator
acerot
Posts: 14
Joined: 03 Oct 2021, 23:16

Re: A thread consumes CPU

Post by acerot »

Does the verbose log log also activities outside of the backup task run? Is there at all any background service activity outside the scheduled backup tasks run (to be caught by the log)? Or do you mean a counting thread from a previous run?
Anyway, I will try the verbose log next time.
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: A thread consumes CPU

Post by cobian »

Yes, it should log everything outside too... Or I hope so..
--
Luis Cobian
Cobian Backup's creator
acerot
Posts: 14
Joined: 03 Oct 2021, 23:16

Re: A thread consumes CPU

Post by acerot »

"CPU consumed by a faulty thread" happened again a few times since my last post. Cannot find out what the cause could be. I set the verbose log but since the fault has nothing in common with backing up process (no backups are running at that time) the log is empty. I tried to stop the Cobian service via the Windows service manager. The manager starts stopping the service, a few threads under the Cobian service process are quit but the faulty thread remains constantly consuming about 8% of CPU (see the picture). The service manager than says it couldn't stop the service. The only way out of this is to kill the service process. The Cobian service manager doesn't help either. Any idea how I could find the cause?
Attachments
2021-10-30_224524.jpg
2021-10-30_224524.jpg (106.25 KiB) Viewed 3319 times
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: A thread consumes CPU

Post by cobian »

Do you have any way to reproduce this? Have any backup been performed before the thread begins to spin?

If no backup is executed at all does this happens as well?

I have have my service running now about a week and don't see that behaviour....

I will be adding MORE verbose information in every thread for the next version in order to solve this issue.
--
Luis Cobian
Cobian Backup's creator
dlilga
Posts: 1
Joined: 23 Nov 2021, 22:17

Re: A thread consumes CPU

Post by dlilga »

I am using Ver 0.9.50 BETA and am seeing excessive CPU usage, for no reason since it isn't doing a backup, and the threads display shows a lot of activity.
Attachments
CobianReflectorProcThreads.jpg
CobianReflectorProcThreads.jpg (87.51 KiB) Viewed 2968 times
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: A thread consumes CPU

Post by cobian »

If you had some task with non-ordinal days (First, Second, etc...) this should be solved in 0.9.55
--
Luis Cobian
Cobian Backup's creator
Post Reply