1.2.5-1 high CPU and RAM usage
Good Morning,
occasionally my OC-Client on my arch-linux box starts freaking out. It starts to eat up RAM (Top was aroung 6 GB) and creates massive CPU-Load (continous load of 60% on a Dualcore-Machine).
The client has to sync 3 folders, with 150 files, total. This is less than 600 MB
Any ideas how to improve this?
BR
Hello, I've got the same problem on Mint 13 with Mate and OC-Client 1.2.5. My PC has got 16GB RAM installed and one FX-8150. Your Client need after some time all RAM(!) and round about 200% CPU-Usage. Can you help us?
I know this problem since OC 4.x. My workaround is to restart the client at least every day. I'd really like to see a fix for this issue. Let me know if I can be of any help.
I have the same issue on Mac OS X, the cliente uses up to 100%.
It would help if somebody could provide a log file of the client while its going wild. So if it runs crazy, don't stop it, but open a console and call owncloud --logwindow and after a while (one or two sync runs), click save in the logfile window.
Sorry, my bad. I was in a hurry this morning. Opening the logwindows succeeds, the first messages appear in the window, but then the process freeze. The CPU usage of the Client increases to above 100%. Is there an other way to see what's going on? Direct loging to file?
I get the same symptoms on 1.2.5. Ubuntu 12.04, amd64. Just killed and starteed with --logfile. Will get back tomorrrow (I hope).
The logfiles get huge really fast. I cut out the last 500000 lines. That's where those "sqlite_step error: disk I/O error" lines start. Hope that's enough to find the problem.
As I don't think there's a way to attach the logfile, I put it there: http://spiegl.de/public/owncloud-client-crash.log.bz2
Thanks, Andy.
I tried to use use --logwindow, unfortunately the window gets unusable when the error occurs, as CPU-Load goes "BOOM" as well does ram-use.
nevertheless: sqlite_step_error and I/O error stuff
will try --logfile now
I have a couple of lines with sqlite_step_error in my log file... The log files i 2.6 GB after 24 hours. A bit unwieldy. ;) Tried running strace -p, but didnät manage to pipe the output. Copied 500 lines from the console, and there's alot of:
poll([{fd=6, events=POLLIN}], 1, -1) = 1 ([{fd=6, revents=POLLIN}]) recvfrom(6, "\1\1l\230\0\0\0\0\0\0\0\0D\0\374\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096, 0, NULL, NULL) = 32 recvfrom(6, 0x1dfdf24, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}]) writev(6, [{"(\3\4\0a\2\0\0\5\0\0\3\306\5\24\0", 16}, {NULL, 0}, {"", 0}], 3) = 16 poll([{fd=6, events=POLLIN}], 1, -1) = 1 ([{fd=6, revents=POLLIN}]) recvfrom(6, "\1\1m\230\0\0\0\0\0\0\0\0\16\0\24\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096, 0, NULL, NULL) = 32 recvfrom(6, 0x1dfdf24, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) recvfrom(6, 0x1dfdf24, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}]) writev(6, [{"(\3\4\0a\2\0\0pQ\0\3\306\5\24\0", 16}, {NULL, 0}, {"", 0}], 3) = 16 poll([{fd=6, events=POLLIN}], 1, -1) = 1 ([{fd=6, revents=POLLIN}]) recvfrom(6, "\1\1n\230\0\0\0\0\0\0\0\0D\0\374\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096, 0, NULL, NULL) = 32 recvfrom(6, 0x1dfdf24, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) recvfrom(6, 0x1dfdf24, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
Any more specific debugging hints? I'd like to help.
since 4 hours I have run into 7.6 GB logfile... last 100 lines repeat:
05-02 22:35:03:642 csync_statedb_query: sqlite3_compile error: no such table: metadata - on query SELECT * FROM metadata WHERE phash='1226921628055589682' 05-02 22:35:03:643 csync_statedb_query: sqlite3_compile error: no such table: metadata - on query SELECT * FROM metadata WHERE inode='133658' 05-02 22:35:03:643 _csync_detect_update: file: pppppp/.git/objects/9b/431fad0d4079afd902592878894a32b623a159, instruction: INSTRUCTION_NEW 05-02 22:35:03:643 csync_statedb_query: sqlite3_compile error: no such table: metadata - on query SELECT md5 FROM metadata WHERE phash='1226921628055589682' AND modtime=1363615054
Same here :-(
05-03 15:35:26:142 csync_ftw: Uniq ID read from Database: folder/file.xls ->
Server configuration Operating system: Debian squeeze Web server: apache2 (2.2.16-6+squeeze11) Database: php5 (5.3.3-7+squeeze15) PHP version: mysql-server-5.1 (5.1.66-0+squeeze1) ownCloud version: version 5.0.6 (versionstring 5.0.5)
Client configuration Client version: 1.2.5-0 Operating system: Debian wheezy (fully updated) OS language: English Installation path of client: /usr/bin/owncloud
I compiled the code from git, and have run 12 hours without problems. Will report back in 36 hours.
Edit: I got the same EAGAIN errors, but no mem or cpu load.
Same here, cpu gets very high after runs in few hours. I'm using mirall 1.2.5 with ocsync 0.7.0.7.
My homebuilt binary did not seem to exhibit this problem:
"Byggd från Git revision 105c76 på May 3 2013, 12:46:48 använt OCsync 0.70.9 och Qt 4.8.1."
It says 1.2.9 as version.
Having the same issue also. Couldn't figure out why my system slowed down to a crawl until I looked at the resource monitor and filtered owncloud. Shut it down and my system was blazing fast. Working on a Win7 pro pc. Everything else about the sync seems to work fine.opened with the log file for about 10 minutes and the txt file was about 2.4MB. Is there anything that I can do to optimize? Happy to provide the log file.
a backtrace sampling at the moment of the 100% CPU usage would be usefull.
run mirall with gdb. when the bug occurs, press ctrl+c, then enter:
thread apply all backtrace
As a newbie, what is mirall with gdb?
Same Problem here, on a Windows 7 x64 Machine. The SyncClient causes an average CPU-Load of 30% (!!!) all the time, while NOT Synchronising (no blue circle in the Taskbar). While Syncronising the CPU Load went down to 0-1%.
CPU: Intel Core i5 760 @3,6GHz RAM: 8GB DDR-1866
I have the same problem here and here is a part of the log:
05-14 15:25:26:406 oc_module: Authentication required
05-14 15:25:26:406 oc_module: Call the csync callback for ownCloud
05-14 15:25:26:490 oc_module: Neon error code was 1
05-14 15:25:26:490 oc_module: WRN: propfind named failed with 1, request error: 503 Service Unavailable
05-14 15:25:26:490 oc_module: Errno set to 10014
05-14 15:25:26:490 csync_ftw: opendir failed for ownclouds://cloud.ifisc.uib-csic.es/owncloud/remote.php/webdav/clientsync - Unknown error: 10014 (errno 10014)
05-14 15:25:26:491 csync_update: Update detection for remote replica took 0.19 seconds walking 0 files.
05-14 15:25:26:491 #### ERROR during csync_update : "CSync failed to find a specific file.
Backend Message: 503 Service Unavailable"
05-14 15:25:26:491 CSync run took 274 Milliseconds
05-14 15:25:26:684 status.php returns: "{"installed":"true","version":"5.0.8","versionstring":"5.0.6","edition":""}" 0 Reply: QNetworkReplyImpl(0x101581d40)
05-14 15:25:26:684 #-------# oC found on "https://cloud.ifisc.uib-csic.es/owncloud"
05-14 15:25:26:691 -> CSync Finished slot with error true
05-14 15:25:26:691 ** error Strings: ("CSync failed to find a specific file.
Backend Message: 503 Service Unavailable")
05-14 15:25:26:691 * owncloud csync thread finished with error
I wish i could have this solved since I cant work with owncloud sync client open on my desktop, as it overloads my CPU and RAM usage :(
I'd like to provide a gdb backtrace for the "sqlite_step error: disk I/O error".
Client environment: Debian wheezy, owncloud-client 1.2.5-0, libocsync-plugin-owncloud 0.70.7-, libsqlite3-0 3.7.13-1+deb7u1, libqt4-sql-sqlite 4:4.8.2+dfsg-11 Hardware is a Lenovo T520 with Intel Core i5-2520M CPU, 8 Gigs RAM with plenty of it unused
Server is ownCloud 5.0.5 on a QNAP TS-219P+ (Marvell 6282 1.6GHz ARM-CPU, 512MB RAM), 2.6.33.2 Linux kernel, PHP 5.3.14
^C Program received signal SIGINT, Interrupt. 0x00007ffff7795dec in QPlainTextDocumentLayout::blockBoundingRect(QTextBlock const&) const () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (gdb) thread apply all backtrace
Thread 464 (Thread 0x7fffddfcb700 (LWP 8087)):
#0 0x00007ffff602da80 in csync_excluded () from /usr/lib/libocsync.so.0
#1 0x00007ffff6031079 in csync_ftw () from /usr/lib/libocsync.so.0
#2 0x00007ffff6031282 in csync_ftw () from /usr/lib/libocsync.so.0
#3 0x00007ffff6031282 in csync_ftw () from /usr/lib/libocsync.so.0
#4 0x00007ffff602ccfb in csync_update () from /usr/lib/libocsync.so.0
#5 0x00007ffff627f49c in Mirall::CSyncThread::startSync() () from /usr/lib/libowncloudsync.so.0
#6 0x00007ffff6293574 in Mirall::CSyncThread::qt_metacall(QMetaObject::Call, int, void*) () from /usr/lib/libowncloudsync.so.0
#7 0x00007ffff663aa2e in QObject::event(QEvent) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8 0x00007ffff730370c in QApplicationPrivate::notify_helper(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#9 0x00007ffff7307b8a in QApplication::notify(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007ffff6625b5e in QCoreApplication::notifyInternal(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007ffff66299e1 in QCoreApplicationPrivate::sendPostedEvents(QObject_, int, QThreadData_) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007ffff66540e3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#13 0x00007ffff47c0355 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007ffff47c0688 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007ffff47c0744 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007ffff6654276 in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#17 0x00007ffff66248af in QEventLoop::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007ffff6624b38 in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#19 0x00007ffff6527d70 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#20 0x00007ffff652ad0b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#21 0x00007ffff4c8eb50 in start_thread (arg=
Thread 8 (Thread 0x7fffdb8d2700 (LWP 24508)):
#0 0x00007ffff51aae33 in *__GI___poll (fds=
Thread 6 (Thread 0x7fffdedf7700 (LWP 24502)):
#0 0x00007ffff51af573 in select () at ../sysdeps/unix/syscall-template.S:82
#1 0x00007ffff6603704 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2 0x00007ffff652ad0b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3 0x00007ffff4c8eb50 in start_thread (arg=
Thread 4 (Thread 0x7fffdffff700 (LWP 24500)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1 0x00007ffff652b20b in QWaitCondition::wait(QMutex_, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
---Type
Thread 3 (Thread 0x7fffe5605700 (LWP 24499)):
#0 0x00007ffff51aae33 in *__GI___poll (fds=
Thread 2 (Thread 0x7fffe5e06700 (LWP 24498)):
#0 0x00007ffff51aae33 in *__GI___poll (fds=
Thread 1 (Thread 0x7ffff7fba760 (LWP 24495)): #0 0x00007ffff7795dec in QPlainTextDocumentLayout::blockBoundingRect(QTextBlock const&) const () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #1 0x00007ffff7794b51 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #2 0x00007ffff75474d8 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #3 0x00007ffff754e293 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #4 0x00007ffff663b54f in QMetaObject::activate(QObject_, QMetaObject const_, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #5 0x00007ffff75959e5 in QAbstractTextDocumentLayout::updateBlock(QTextBlock const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #6 0x00007ffff77960aa in QPlainTextDocumentLayout::documentChanged(int, int, int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #7 0x00007ffff75857d4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #8 0x00007ffff7546a2d in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #9 0x00007ffff779ad05 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #10 0x000000000045f2d5 in Mirall::LogBrowser::slotNewLog(QString const&) () #11 0x0000000000468349 in Mirall::LogBrowser::qt_metacall(QMetaObject::Call, int, void**) () #12 0x00007ffff663aa2e in QObject::event(QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #13 0x00007ffff735269a in QWidget::event(QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #14 0x00007ffff730370c in QApplicationPrivate::notify_helper(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #15 0x00007ffff7307b8a in QApplication::notify(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #16 0x00007ffff6625b5e in QCoreApplication::notifyInternal(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #17 0x00007ffff66299e1 in QCoreApplicationPrivate::sendPostedEvents(QObject_, int, QThreadData_) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #18 0x00007ffff66540e3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #19 0x00007ffff47c0355 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #20 0x00007ffff47c0688 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #21 0x00007ffff47c0744 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #22 0x00007ffff6654276 in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #23 0x00007ffff73a483e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #24 0x00007ffff66248af in QEventLoop::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #25 0x00007ffff6624b38 in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #26 0x00007ffff6629cf8 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #27 0x0000000000426441 in main ()