######################################################## #DO NOT USE ROOT directory!!! (for example c:\) # unless you have a dedicated partition for Smart Cache # and removed check for that from source code. ######################################################## CacheRoot scratchvol:/scache |
Exert from scache.conf, showing how to declare
FS paths in scache. Take note that the backslash can also be used. |
ENVSET CWD=APPS:\Java\SCache JAVA -cp . -ms4m scache -cfgdir APPS:\Java\scache JAVA -cp . -ms4m scache -gc 1440 -cfgdir APPS:\Java\scache |
Typical Smart Cache startup file. Please
note that the -cfgdir is used in both cases, which in my experience was required.
Your mileage may vary. |
If everything went well, you'd see something similar to the following on
the server console logger screen:
Symantec Java! JustInTime Compiler Version 3.10.110(x) for the Java 2
Platform Copyright (C) 1996-99 Symantec Corporation Symantec Java! JustInTime Compiler Version 3.10.110(x) for the Java 2 Platform Copyright (C) 1996-99 Symantec Corporation Smart Cache 0.84 - full featured caching proxy server and web forwarder. Copyright (c) Radim Kolar 1998-2003. Opensource software; There is NO warranty. See the GNU General Public License version 2 or later for copying conditions. "A person is said to be established in self-realization and is called a yogi [or mystic] when he is fully satisfied by virtue of acquired knowledge and realization. Such a person is situated in transcendence and is self-controlled. He sees everything--whether it be pebbles, stones or gold -- -- as the same." - Bhagavad-gita 6.8 Smart Cache 0.84 - full featured caching proxy server and web forwarder. Copyright (c) Radim Kolar 1998-2003. Opensource software; There is NO warranty. See the GNU General Public License version 2 or later for copying conditions. "The Supreme Personality of Godhead said: Son of Prtha, a transcendentalist engaged in auspicious activities does not meet with destruction either in this world or in the spiritual world; one who does good, My friend, is never overcome by evil." - Bhagavad-gita 6.40 [INFO] New rule "*/ads*" made old rule "http://ads.*" obsolete. [INFO] New rule "*/ads*" made old rule "http://ads.*" obsolete. Checking filesystem (scratchvol:/scache) Filesystem allows ending dot in filename: false Filesystem allows backslash in filename : false Filesystem reports real directory size : false Mon Apr 07 10:50:07 EDT 2003 Smart Cache 0.84 ready on 8080/10.192.0.81 Checking filesystem (scratchvol:/scache) Filesystem allows backslash in filename : false Filesystem reports real directory size : false Mon Apr 07 10:50:07 EDT 2003 running garbage collection. Mon Apr 07 10:50:07 EDT 2003 Garbage collector version 0.22 initialized. Mon Apr 07 10:50:07 EDT 2003 Cache size watermarks: Mon Apr 07 10:50:07 EDT 2003 High: 1195376640 B (95%) Mon Apr 07 10:50:07 EDT 2003 Low: 1132462080 B (90%) Mon Apr 07 10:50:07 EDT 2003 Block size: 1024 B, avg. directory size: 2048 B. Mon Apr 07 10:50:07 EDT 2003 File sizes: Min=0 B, Max=40960000 B. Mon Apr 07 10:50:07 EDT 2003 GC Array size: 5000, Max age: 365.0 d. Mon Apr 07 10:50:07 EDT 2003 Scanning cache directory. This takes some time... Mon Apr 07 10:51:26 EDT 2003 CACHE SCAN SUMMARY: Mon Apr 07 10:51:26 EDT 2003 High watermark: 1195376640 B (95%) Mon Apr 07 10:51:26 EDT 2003 Disk storage: 111186944 Bytes used. Mon Apr 07 10:51:26 EDT 2003 Cache is 8.8 percent full. Mon Apr 07 10:51:26 EDT 2003 (15052 files and 4659 dirs.) Mon Apr 07 10:51:26 EDT 2003 avg. file size: 7386 Bytes. Mon Apr 07 10:51:26 EDT 2003 avg. directory: 23864 B in 3 files. Mon Apr 07 10:51:26 EDT 2003 5000 of 5000 gc slots used. Mon Apr 07 10:51:26 EDT 2003 Time marks: low=62.970886 middle=81.46025 high =363.8706 Mon Apr 07 10:51:26 EDT 2003 Cache size is bellow lowmark - No cleaning needed. Mon Apr 07 10:51:26 EDT 2003 garbage collection ended. Mon Apr 07 10:51:26 EDT 2003 waiting 1440 m for another run. |
If you get something like "Class scache exited with error level 1", something is wrong with your NCF or paths.