[wp-trac] Re: [WordPress Trac] #7690: Using SSH2 to upload
files/wordpress
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 6 02:35:29 GMT 2008
#7690: Using SSH2 to upload files/wordpress
-------------------------------------+--------------------------------------
Reporter: ShaneF | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.7
Component: Administration | Version: 2.7
Severity: normal | Resolution:
Keywords: ssh upgrade dev-testing |
-------------------------------------+--------------------------------------
Comment (by DD32):
Yes, i was using 0.18 modified, but switched to 0.14, They're just as slow
as one another and both fail just as often.
ssh2.sftp:// appears to be faster than the send/recv() functions, but are
only available with PHP5+
Currently it can use 120+seconds to just connect and attempt creating a
directory.
Of course, That could just be my SSH server being slow..
I've made some optimizations to the unzip_file() code to reduce the number
of operations needed, but its still not fast enough for use IMO.
I may also know why its so slow..
{{{
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11905 www-data 20 0 106m 37m 20m R 101 14.5 9:06.99 php5-cgi
}}}
Thats the PHP process thats upgrading the plugin via SSH/SFTP, Looks like
its using 101% of the cpu constantly for the last 10minutes while trying
to upgrade.. (I removed the 120second time limit) - It looks like the
extension is just looping somewhere badly..
--
Ticket URL: <http://trac.wordpress.org/ticket/7690#comment:20>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list