server-configuration

Tomcat 6 | What's the significance of antiResourceLocking & antiJARLocking?

岁酱吖の 提交于 2019-11-28 07:32:47
问题 I am working on a project where we'll be using Tomcat 6.0.20 for Development and production. I came across some issues related to hot deployment which requires one to set Context.antiResourceLocking to false in server.xml. I had some questions on antiResourceLocking and antiJARLocking. I have gone through the reference at http://tomcat.apache.org/tomcat-6.0-doc/config/context.html. What I can't understand is what exactly do you mean by a JAR getting locked or a resource getting locked. What I

Configuration parameter work_mem in PostgreSQL on Linux

送分小仙女□ 提交于 2019-11-27 13:38:44
I have to optimize queries by tuning basic PostgreSQL server configuration parameters. In documentation I've came across the work_mem parameter. Then I checked how changing this parameter would influence performance of my query (using sort). I measured query execution time with various work_mem settings and was very disappointed. The table on which I perform my query contains 10,000,000 rows and there are 430 MB of data to sort. ( Sort Method: external merge Disk: 430112kB ). With work_mem = 1MB , EXPLAIN output is: Total runtime: 29950.571 ms (sort takes about 19300 ms). Sort (cost=4032588.78

Multiple PHP versions on the same box

橙三吉。 提交于 2019-11-27 07:03:21
问题 Is it possible to have multiple versions of PHP running on the same box ( like rails ) . Here is my problem , I need to start development on a new project and was planning to use PHP 5.3 for it so that I can use the latest Zend framework and active record with it . However the machine where I need to host my application has PHP 4.4 and there are several other applications hosted there . I do not want to upgrade the PHP version on the server as in the past I have faced a lot of issues while

Configuration parameter work_mem in PostgreSQL on Linux

[亡魂溺海] 提交于 2019-11-26 18:18:32
问题 I have to optimize queries by tuning basic PostgreSQL server configuration parameters. In documentation I've came across the work_mem parameter. Then I checked how changing this parameter would influence performance of my query (using sort). I measured query execution time with various work_mem settings and was very disappointed. The table on which I perform my query contains 10,000,000 rows and there are 430 MB of data to sort. ( Sort Method: external merge Disk: 430112kB ). With work_mem =

Make XAMPP/Apache serve file outside of htdocs [closed]

非 Y 不嫁゛ 提交于 2019-11-26 01:48:00
问题 Is it possible to configure xampp to serve up a file outside of the htdocs directory? For instance, say I have a file located as follows: C:\\projects\\transitCalculator\\trunk\\TransitCalculator.php and my xampp files are normally served out from: C:\\xampp\\htdocs\\ (because that\'s the default configuration) Is there some way to make Apache recognize and serve up my TransitCalculator.php file without moving it under htdocs ? Preferably I\'d like Apache to serve up/have access to the entire

Make XAMPP/Apache serve file outside of htdocs [closed]

℡╲_俬逩灬. 提交于 2019-11-25 23:07:23
Is it possible to configure xampp to serve up a file outside of the htdocs directory? For instance, say I have a file located as follows: C:\projects\transitCalculator\trunk\TransitCalculator.php and my xampp files are normally served out from: C:\xampp\htdocs\ (because that's the default configuration) Is there some way to make Apache recognize and serve up my TransitCalculator.php file without moving it under htdocs ? Preferably I'd like Apache to serve up/have access to the entire contents of the projects directory, and I don't want to move the projects directory under htdocs . edit: edited