2010年3月23日 星期二

Gigaspaces Notes

JVM fine-tune

http://www.gigaspaces.com/wiki/display/XAP7/Tuning+Java+Virtual+Machines

GigaSpaces fine-tune

http://www.gigaspaces.com/wiki/display/XAP7/Tuning+GigaSpaces+Performance

Windows network fine-tune

http://www.gigaspaces.com/wiki/display/XAP7/Tuning+Infrastructure

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"KeepAliveInterval"="1000"
"KeepAliveTime"="1000"

Rapid loading to address the CSV file loading performance.

http://www.gigaspaces.com/wiki/display/SBP/Rapid+Data+Load

First of all, please let your team to read http://www.gigaspaces.com/wiki/display/XAP7/Polling+Container . For your case, please read "Concurrent Consumers" session to configuration it work with more threads and it will increase the performance.

And also, the below links are useful since you are talking about GuangZhou business today:

Eucaplyptus

http://open.eucalyptus.com

Nati's blog are related to cloud computing

http://natishalom.typepad.com/nati_shaloms_blog/2010/01/the-missing-piece-in-the-virtualization-stack-part-1.html

http://natishalom.typepad.com/

Webinar - On Demand Middleware Services for the Enterprise - Coming Up in 2010

http://www.gigaspaces.com/resource/video

Please follow Nati's blog, from there you will learn more basic concepts of cloud computing not only GigaSpaces.

1. How to get the number of web request.

instance.getStatistics().getWebRequests().getTotal();

    instance is a jetty PU.

2. http://www.gigaspaces.com/wiki/display/XAP7/Administration+and+Monitoring+API

    To get the memory statistics ( Virtual machine and physical machine)

And also you can use this sample(Petclinic) codes:

http://www.openspaces.org/display/DAE/Project+Downloads

2009年11月6日 星期五

Change user profile path in windows xp

Changing the ProfileImagePath value in the registry
ProfileImagePath registry value
The ProfileList registry key contains some sub-keys, which are nothing but the list of User Account Security Identifiers (SID). Each of the SID represents an Account. The key is located here:

HKEY_LOCAL_MACHINE \ SOFTWARE\ Microsoft\ Windows NT \ CurrentVersion \ ProfileList

2009年7月20日 星期一

How to change JBoss default port

1. Open the JBoss Folder

2. Goto its Deploy folder.

3. Goto the jbossweb-tomcat55.sar

4. Find out the server.xml inside that folder. Actually this is the server configure file of the BuildIn Tomcat.

5. Find the folowing Tag

<Connector port="8080" address="${jboss.bind.address}"…….

6. Change the port number here.

7. Restart the server.

Jboss預設只能以127.0.0.1本機存取,如要改變binding address,啟動時指令如下:

run -c default -Djboss.bind.address=0.0.0.0

用run -h可查看help

2009年7月19日 星期日

Install PAE enabled kernel in 32 bit Ubuntu to use 4GB RAM

$ sudo apt-get update
$ sudo sudo apt-get install linux-headers-server linux-image-server linux-server
$ sudo reboot

2009年7月15日 星期三

修改Oracle Express的HTTP port

Oracle database express edition default http port是8080,容易與其他的web server衝到,以下指令可將其改為8087

C:\>sqlplus /nolog

SQL> connect
Enter user-name: system
Enter password: <輸入密碼>
Connected.
SQL> Exec DBMS_XDB.SETHTTPPORT(8087);

PL/SQL procedure successfully completed.

SQL>quit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 – Production

修改後立即生效。