Hi, I'm running CF 8 on Linux & CKFinder 2.0.1. I installed this item 2 weeks ago, and ever since, the load on the server has drastically increased and the response time has went down. Response time will go from less than 100 MS to over 5000. Also, the file connector.cfm frequently times out. I am guessing this occurs when there are users with a large number of files to display. I did some testing with different numbers of files, and if there was a large number connector.cfm would use a lot of server resources, and kill performance.
I tried setting "config.thumbnails.directAccess = true;" in the config file, but that completely killed ckfinder. Looks like that may be a windows environment only thing. However, while ckfinder was dead, server performance was back to normal
Can you recommend any configuration suggestions that might improve the performance with this file? Is there a way to limit the number of files that can be returned? Or some kind of paging method to display 50 or 100 files at a time?
I tried setting "config.thumbnails.directAccess = true;" in the config file, but that completely killed ckfinder. Looks like that may be a windows environment only thing. However, while ckfinder was dead, server performance was back to normal
Can you recommend any configuration suggestions that might improve the performance with this file? Is there a way to limit the number of files that can be returned? Or some kind of paging method to display 50 or 100 files at a time?
Re: connector.cfm timeout and increased server load
should be a way to go, it was actually designed for ColdFusion at the begining, because this server has a problem with many simultaneous connections.
Let's trace the problem with directAccess set to true. Do you have any details regarding the exception that occurs? Is it possible to send me a PM with a sample installation of CKFinder where this setting is enabled?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: connector.cfm timeout and increased server load
Re: connector.cfm timeout and increased server load
Thanks.
Re: connector.cfm timeout and increased server load
Was there any resolution to this problem, I am having a similar problem with CF 9 and CKFinder 2.0.1
There are 230 images in the folder and when you start browsing the server starts to time out.
Are there any settings changes you recommend or will updating to 2.0.2 help?
Thanks for any help
Re: connector.cfm timeout and increased server load
If Anyone has any suggestions as to why this is happening, please pass is on!
Thanks.
Re: connector.cfm timeout and increased server load
I should have some dev release of CKFinder for testing within a week (or sooner).
Would you have some time to check it and confirm that the issue is gone?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: connector.cfm timeout and increased server load
Thanks!
Re: connector.cfm timeout and increased server load
@icglinkdave - could you check the latest CKFinder 2.1 (ColdFusion) and let me know if it works better now?
You can increase the delay between loading each thumbnail with config.thumbnailDelay (default value is "50" (milliseconds)).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: connector.cfm timeout and increased server load
ColdFusion crashes quite frequently now and we keep see java heap space errors in the logs. I installed a trial of FusionReactor and it's looking like the culprit is the connector.cfm for CKFinder. Everytime CKFinder is loaded to insert files into the content, the heap space usage on the server spikes massively from an average of 300mb to 900mb+ and then eventually kills CF.
Can someone help me identify the problem? It still doesn't look like it's been resolved.
Cheers
Shaun
Re: connector.cfm timeout and increased server load
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: connector.cfm timeout and increased server load
The changes that were made have stopped it happening every single time the 'browse server' window opens a folder with many images, but it still has the same effect if a user starts scrolling down through the thumbnails.
We have increased resources now so our server is able to recover from the load rather than a complete melt down. However, it is still slowing down the whole server and causing errors which is not ideal.
It gives the same error every time:
There must be a better way to load the thumbnails, but even from that error message I can't locate the exact lines of code causing the problems.
Can anyone else shed any light on the problem?
Thanks
Re: connector.cfm timeout and increased server load
What seems to occur is that the server loses control of the process sometimes when creating a thumbnail - either right after a user uploads a new file via CKF, or uses CKF to view a directory that a file has been uploaded to recently but has yet to have a thumbnail generated. Oftimes, using FusionReactor, these processes are kill-proof and continue to churn away to a degree until something is done (CF service restarted or server rebooted). In time the server as a whole will bog down and become mostly/completely unresponsive.
It should be noted that other scripts will go AWOL like described above at times, not just scripts/processes associated with CKFinder. But the connector/thumbnail process tends to be one of the more prone to go cray-cray.
Re: connector.cfm timeout and increased server load
Re: connector.cfm timeout and increased server load
I've got a client who has uploaded some images that have caused CKF to go bonkers. I got her to send me a couple of these files to test with (filenames were known based on FusionReactor slow-request logs).
I've been trying to upload both of these images into the install on my dev server - and both images (428k and 7mb) both get into the 99.* range, and then seem to sit for a good while, sometimes finishing and sometimes the process goes AWOL and spins forever.
I got the 428k file to successfully upload, sort of - the display stopped at 99.*, and sat there for a good minute or so, until finally the upload area refreshed itself with the "file too big" message (I have Images set with a maxSize of 200k). I have to assume the "dead time" involved was CKF attempting to sample the image down to the max width/height values, and then remeasuring the size of that new file, and then rejecting it based on size. I wonder if there's something about the format of this file that caused that resample process to go verrrry sloowwwwly. Total time was 68 sec. And the CPU tends to get maxed out during this time.
I'm doing the same with the 7.4mb file now - currently it's clocked at 324 sec while sitting at 99.6% uploaded. (And coming back before saving this post, the file finally finished being resized, ending up with a 199k file, after 366 seconds.)
Could this process not be revised slightly so that, in these cases, the upload area updates during the process? Shows the upload complete, then displays something like "analyzing/resizing file" or somesuch, so it doesn't appear that the file is still physically uploading?
Re: connector.cfm timeout and increased server load
Error Diagnostic Information
The request has exceeded the allowable time limit Tag: cfoutput
The error occurred on line 20.
Browser: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)
Template: /ckfinder/core/connector/cfm/connector.cfm
I opened a ticket about this [1915-PAZV-5765] [8922fecf] but your reply said it was a problem with my ColdFusion settings. Not sure I believe that given that others are also having serious problems. I know in the CF administrator, there is the CF default timeout setting which I have set to 120 seconds, does that need to be extended for CKFinder to keep connector.cfm from timing out prematurely in case uploads take longer that two mintues? It does seem like problems happen more often with larger image uploads (> 1MB).
Thanks,
Chris
Re: connector.cfm timeout and increased server load
Thanks,
Chris