webcaching.guerrerotome.com

Just another WordPress weblog

Archive for the ‘Tools’ Category

Posted by Carlos Guerrero on February 11, 2010

Configuring a proxy cache on OAScache 10g

1. Select the port where the cache is listening.

2. Set up the origin servers. The origin servers is where the applications are installed
guerrero.uib.es / 80 / ENABLE / 100 / 5/ - / 10 / HTTP

3. Site definition. The configuration on the cache of a concrete “web site”. It will be the URL the users will use to access to the system.

servidorcache.uib.es / 80 / - / - / - / Not required / Yes / N-A / None / N-A / N-A

The port number must be one of the established in point 1.

4. Site to server mapping. Maps the definition of a site (point 3) with the origin server that would answer the request over that site (point 2).

5. Caching personalization and rules. By default .php files are not cached. You must add them.

cache php files / File Extension / .php / GET, GET with query string / - / N-A / Cache / Off / Yes

6. By default the limit of cached object is set to 100KB. If you need to cache bigger elements change it in Resources limits.

Posted by Carlos Guerrero on February 11, 2010

How to install Oracle Application Server Cache 10g on Ubuntu systems

From:http://ubuntuforums.org/showthread.php?t=173639

Proved on Kubuntu 9.10

HowTo: Install Oracle Application Server CACHE 10g Release 2

1. Create an ‘oracle’ user and ‘oracle’ group.
2. For user ‘oracle’ add ‘root’ to secondary list of groups
3.

Code:
sudo chmod 775 /opt

4. Log out and log back in as oracle user
5. To fix a missing ‘ntcontab.o’, do the following:

Code:
sudo apt-get install gcc make manpages-dev autoconf automake libtool flex bison gdb gcc-2.95-doc gcc-doc binutils

6.

Code:
sudo apt-get install libdb1-compat

7. Download the Oracle Application file ‘as_linux_x86_corecache_101202.cpio’ from oracle (
http://www.oracle.com/technology/software/products/ias/htdocs/101202.html)

8. Extract in local user directory

Code:
 cpio -i --file=/<path>/as_linux_x86_cache_101202.cpio -d

9.

Code:
 cd Disk1

10.

Code:
./runInstaller -ignoreSysPrereqs
11. At the end of the install near 95% if is says that it cannot verify that the instance is running(message: <path>/opmn/bin/opmnctl start), hit continue.
12. That’s it. Let it do it’s initialization process. When it is finished exit.
13. Go to http://localhost:1156 for the admin console.
14. There still needs to be an entry in /etc/intit.d but I have not done that yet. Soon, I will update the post with the file.
15. You will required to execute son sh scripts as root user (DO IT).
16. At the end of the installation process you can set up the proxy cache using a web browser (http://URLSERVER:9400) and the user name ias_admin and previously established password.
Posted by Carlos Guerrero on December 17, 2008

How to start in the world of SNMP

Links to network management suites based on SNMP:

http://pandorafms.org/ (One of the more interesting and complete - online dema available)
http://www.snmp4j.org/ (API SNMP for Java development)
http://www.ireasoning.com/snmpapi.shtml
http://www.openwired.net/OwControl.php?rp_action=contenido&rp_function=IAnalyzerM

And some other basic details here.

Posted by Carlos Guerrero on September 17, 2008

Hadoop

System administrators have to lead with the problem of “dead of exit”. Google, for example, uses a huge cluster of cheap PCs with Linux. In the blog O’Reilly Radar apeared a news about  Yahoo and Hadoop. What is Hadoop? It’s a subproject of  Lucene (Apache) that implements in Java some Google tecnologiesque as MapReduce and Google File System. In OSCON 2007  Doug Cutting (its creator) made a presentation of Hadoop.

Posted by Carlos Guerrero on September 5, 2008

Introduction to Java RMI

A single an introductory example of the use of RMI is given in this both web pages (in spanish):

http://www.proactiva-calidad.com/java/rmi/introduccion.html
http://es.wikipedia.org/wiki/RMI

Posted by Carlos Guerrero on October 26, 2007

Java HTTP web caches

For the next step in my Phd work I need to integrate a web cache tier with Jastor and the Performance and Behaviour Knowledge Base. To avoid the complete implementation of the tier I have been looking in sourceforge.net for some web cache tier Java system. The list of the tools I’ve found is:

  • Puff proxy
  • Pippo proxy
  • Smartcache
  • Open cache
  • Pet Http Proxy
  • Web cache for J2EE
  • S3C Simple Server-side cache

Now I will study the different options and I will choose one to use as base of my implementation. In some days I will explain my conclusions about each of that proxy-cache tools.

Posted by Carlos Guerrero on October 19, 2007

Install and Setup Oracle Application Sever Web Cache

* Donwload the software form the Oracle web site (http://www.oracle.com/technology/products/ias/web_cache/index.html and click in “Download Web Cache standalone install”).

* Check a network sufix and DNS domain exist or the installation will not be done.

* It’s important there is only one installation of the OracleAS Web Cache in the computer. If others are installed, before install the new, uninstall the others in the same Installation Dialog of the intallation program.

* Unzip and execute setup.exe

* During the installation only the administrator password is required. Remember it. The administrator username is allways “ias_admin”.

* Check the firewall doesn’t have restrictions over the ports used by OracleAS web cache. In the basic configuration OracleAS web cache use port 80 for http request and port 4000 for configuration pannel.

* Start OracleAS web cache. Start menu –> Oracle Application Server oracleas1 –> Oracle AS web cache –> Start Web Cache

* Information about the software is in: C:\OraHome_2/README.htm or at the web in http://otn.oracle.com/products/ias/web_cache/

* OracleAS is now installed and running

* Setup of the origin server, cache rules, and sites is needed. To configure the application open a browser and write: http://130.206.134.121:4000 (130.206.134.121 is the ip or the DNS of the computer where oracle is installed) and input the user name (ias_admin) and the user password.

* The changes in the setup or configuration of Oracle are:

  •  Origin Servers, Sites, and Load Balancing –> Origin Servers –> Change the value of the “host” and “port” to the host where the web application (apache) is installed.
  •  Origin Servers, Sites, and Load Balancing –> Site Definitions –> Change the value of the “host name” and “port” to the host where the web application (apache) is installed.
  • Rules for Caching, Personalization, and Compression –> Caching, Personalization, and Compression Rules –> Add a new rule for php files. A rule for file extensions, .php, for get and get with query string, caching policy:cache, compression:off, and enabled=yes.

* Once all the changes are done, in the top of the page a button to apply changes has to be execute. After apply the changes, it’s needed to restart the oracleAS web cache.

 

Posted by Carlos Guerrero on December 18, 2006

Web developer Firefox add-ons

An useful firefox tool for developers is the web developer toolbar.

I use this toolbar for my work to check header information about cache information, but it could be used for many diferents things that help web developers work.

You can download an install it here