연락처: [ The Japanese government should apologize to Japanese Military Sexual Slavery victim. / 日本政府は日本軍の性的奴隷?牲者に謝罪すべき. ]



게시판 [71]
02.File Book
File 자료실 [95]
Site Link [17]
개인폴더 [201]
03.Field Book
Altibase [19]
Tibero [30]
MS-SQL [25]
MySQL [43]
DB2 [79]
ORACLE [3003]
PSQL [134]
기타정보 [155]
운영체제 [603]
04.Q/A Book
Q/A [53]
방명록 [54]
레벨업 [37]
구인/구직 [2]

+ 가족 Hompy
+ DNSEver
IOTN :: Field Book :: ORACLE


weblogic cache
최길호 [LIST]   2018-02-28 10:26:19, 조회 : 236,825

이 Cache Filter를 사용하면 JSP, Servlet은 물론 정적인 컨텐트도 캐싱할 수 있다. 예를 들어 웹로직
을 웹서버로 활용할 경우 HTML이나 GIF, JPEG 등의 정적인 컨텐트를 메모리에 올려 놓고 사용하면 큰 성능
향상 효과를 얻을 수 있다. (web.xml)

Response Caching

The cache filter works similarly to the cache tag with the following exceptions:
It caches on a page level (or included page) instead of a JSP fragment level.
Instead of declaring the caching parameters inside the document you can declare the parameters in the configuration of the web application.

The cache filter has some default behavior that the cache tag does not for pages that were not included from another page. The cache filter automatically caches the response headers Content-Type and Last-Modified. When it receives a request that results in a cached page it compares the If-Modified-Since request header to the Last-Modified response header to determine whether it needs to actually serve the content or if it can send an 302 SC_NOT_MODIFED status with an empty content instead.
The following example shows how to register a cache filter to cache all the HTML pages in a web app:

The cache system uses soft references for storing the cache. So the garbage collector might or might not reclaim the cache depending on how recently the cache was created or accessed. It will clear the soft references in order to avoid throwing an OutOfMemoryError.
Initialization Parameters
If you wanted to make sure that if the web pages were updated at some point you got the new copies into the cache, you could add a timeout to the filter. Using the init-params you can set many of the same parameters that you can set for the cache tag:
The initialization parameters are
Name This is the name of the cache. It defaults to the request URI for compatibility with *.extension URL patterns.
Timeout This is the amount of time since the last cache update that the filter waits until trying to update the content in the cache again. The default unit is seconds but you can also specify it in units of ms (milliseconds), s (seconds), m (minutes), h (hours), or d (days).
Scope The scope of the cache can be any one of request, session, application, or cluster. Request scope is sometimes useful for looping constructs in the page and not much else. The scope defaults to application. To use cluster scope you must set up the ClusterListener.
Key This specifies that the cache is further specified not only by the name but also by values of various entries in scopes. These are specified just like the keys in the CacheTag although you do not have page scope available.
Vars These are the variables calculated by the page that you want to cache. Typically this is used with servlets that pull information out of the database based on input parameters.
Size This limits the number of different unique key values cached. It defaults to infinity.

The following example shows where the init-parameter is located in the filter code.
Max-cache-size This limits the size of an element added to the cache. It defaults to 64k.


1. 개요
jsp 파일을 변경하고 was를 재기동 했는데도 반영이 안되는 경우가 있습니다.
그럴때 엔진 디렉토리에 있는 컴파일된 템프 디렉토리를 삭제한 후 재기동을 하면 제대로 반영이 되는데요.
매번 이렇게 하면 너무나도 귀찮기 때문에 jsp 파일이 변경 된 경우 자동으로 컴파일 해주는 옵션을 알려드리겠습니다.

위 처럼 다양한 옵션들이 있는데요. 그 중에서 page-check-seconds 를 사용해주시면 됩니다.
값은 -1, 0, 1 로 지정할 수 있는데
-1 은 체크하지 않겠다
0 은 항상 체크하겠다
1 은 1초마다 체크하겠다
라는 설정입니다. 필요해따라 설정하시면 됩니다.

3. 설정방법


clear weblogic cache
1. Shut down Server.
2. Delete the contents of the folder
   You can also delete ORACLE_HOME/user_projects/domains/your_domain/servers/your_server/cache (optional)
3. Restart Server.



<?xml version='1.0' encoding='UTF-8'?>

For further reading you can refer the below link.
There is an alterative solution for this caching by using the wl:cache element. However the CacheFilter may also be used with servlets and static content,unlike the related wl:cache custom tag, which works only in JSP pages.


제목 작성자 작성일 조회
Troubleshoot  ORA-03137: TTC    최길호 2018/04/24 1006965
WebLogic  weblogic cache    최길호 2018/02/28 236825
WebLogic  weblogic cluster session share [ 세션 공유 login.jsp login chk, [Deployer:149188] ]    최길호 2018/03/03 124581
Troubleshoot  IMP-00003 ORA-32603: invalid FREEPOOLS LOB storage option value [ move lob table, lob index ]    최길호 2013/05/26 120212
Troubleshoot  proc, windows, vc 2003 , pcmake , Files\Microsoft은(는) 예상되지 않았습니다    최길호 2006/10/02 100237
Troubleshoot  dblink ORA-02068 ORA-03113 ORA-02080 [ ALTER SESSION CLOSE DATABASE LINK RDBNM; ]  [4]  최길호 2010/07/10 99028
Troubleshoot  ORA-00600: internal error code, arguments: [kcbzib_kcrsds_1]    최길호 2021/09/23 98738
WebLogic   WEB-INF/lib 우선 적용, index-directory-enabled 인덱스 디렉토리    최길호 2018/02/27 97286
WebLogic  java -jar fmw_12. The OpenJDK JVM is not supported on this platform.    최길호 2018/02/06 86589
Troubleshoot  TRIGGER,Function ORA-02069 ORA-06512 ORA-04088 ORA-02070    최길호 2008/12/19 86469
Script  session monitor [ dbms_xplan sql binds ]  [2]  최길호 2010/06/30 85384
Troubleshoot  ORA-03297 Resizing Empty Datafile    최길호 2009/08/11 84482
Admin  dd copy datafile raw device , filesystem  [4]  최길호 2009/09/07 81818
SQL,PL*SQL  dbms_random 사용예  [1]  최길호 2010/04/12 81272
Troubleshoot  ODBC {Microsoft ODBC for Oracle}, ORA-12154, ODBC NA000 IM006 01000  [1]  최길호 2008/01/04 77665
Troubleshoot  ORA-12537 , <unknown connect data> * 12537  [2]  최길호 2009/11/21 68001
Troubleshoot  ALTER SESSION CLOSE DATABASE LINK    최길호 2010/07/11 66182
Troubleshoot  ld: 0711-224 WARNING: Duplicate symbol: p_xargc    최길호 2010/06/08 65306
Admin  ORACLE과 MSSQL간의 DBLINK 방법    최길호 2008/09/19 65298
Tool  RAC jdbc connection test [ thin java sample ]  [3]  최길호 2010/06/14 61889

    목록보기   다음페이지 1 [2][3][4][5][6][7][8][9][10]..[151]   [다음 10개]

Copyright 1999-2023 Zeroboard / skin by 최길호(
최근 댓글
윈도우 서버에서 sqlplus .... ORA-...
by 최길호
ORA-28500: connection from O...
by 최길호
pkg 확인 SELECT * FROM AL...
by 최길호
최근 게시물
dgmgrl 운영, db11st h/w 교체 시나리....
by 최길호
DGMGRL> show configuration;....
by 최길호
arch filesystem 100% full 예방 /....
by 최길호