Page 1 of 1

Sym link to network drive - slow response time

PostPosted: 09. October 2020 09:34
by drauch
I'm developing from within a VM. My projects reside on the host. I've created a symlink in the C:\xampp\htdocs folder, targeting the host directory containing my source code. While this works technically, directory listing is ULTRA SLOW. When I access a specific file it works fine and speedy. I'm heavily using directory listing though and I don't know what else to do in order to speed things up.

If I open the direcotry using Windows Explorer it's not slow at all.

Can you help me out?

Best regards,
D.R.

Re: Sym link to network drive - slow response time

PostPosted: 09. October 2020 12:32
by drauch
I've now changed the symlink to an Alias + <Directory> entry in the httpd.conf. Unforunately, also slow (only when directory listing, accessing existing files directly is fast).

(My root directory is kinda big - can this be the problem? does the directory lister go through all the sub directories and this is not good? Is it possible to configure it in a more performant way?)

Best regards,
D.R.

Re: Sym link to network drive - slow response time

PostPosted: 09. October 2020 18:58
by Nobbie
drauch wrote:does the directory lister go through all the sub directories and this is not good?


??

Does my car drive faster than 180km/h?

Re: Sym link to network drive - slow response time

PostPosted: 10. October 2020 09:12
by drauch
Sorry for bad English, I wanted to express that it's maybe a problem for the index module that I have directories with ~30 sub directories and each of them has again 30 sub directories.

Re: Sym link to network drive - slow response time

PostPosted: 10. October 2020 12:08
by Nobbie
I dont know which index module you are using, that is my problem.

Re: Sym link to network drive - slow response time

PostPosted: 10. October 2020 13:05
by drauch
Ah, the default XAMPP one. I think it's called autoindexer.

In fact I have almost the default XAMPP configuration. No additional modules, nothing.

Best regards,
D.R.

Re: Sym link to network drive - slow response time

PostPosted: 10. October 2020 21:49
by Nobbie
There is only one thing i can imagine, edit httpd.conf and enter this line:

EnableSendfile Off


Restart Apache and try again.

Re: Sym link to network drive - slow response time

PostPosted: 10. October 2020 22:07
by drauch
The documentation in the httpd.conf would hint exactly at that problem. I've turned it off and restarted Apache, unfortunately, it's still slow. Also turning off "EnableMMAP" didn't help :-/

(just realized that EnableSendfile is by default off, so of course it didn't help :-/)