Skip to content

#212 – Chicken and Egg


This week on the podcast, we discuss some feedback on using Shared Cache, options for non-production SMTP servers, and a chicken and egg problem with the Elasticsearch DPK silent install.

Show Notes

  • psadmin.conf 2020 Registration @ 3:00
  • Shared Cache Feedback @ 4:00
  • Clearing Shared Cache Gotcha @ 12:00
  • SMTP Configuration in Non-production @ 20:00
  • Elasticsearch Silent Install @ 27:00

2 thoughts on “#212 – Chicken and Egg”

  1. Dan – Just thought of sharing. We also use same Hybrid cache and its definitely a performance boost. but main problem is it just loads unnecessary cache and makes the cache file to grow upto 3GB(per domain it holds 25GB). Alsoo PSAPPSRV has to read the bunch of dat files to get the object .

    What i observed in shared cache is , when i enable this option cache becomes read only and all the dynamic object cache will store in PSAPPSRV memory. But recycle count parameter makes PSAPPSRV to restart every nth count. so when it restarts it needs to bring all the dynamic cache to the memory and makes my system worse than ever . so i took the decision to use hybrid cache.

    Since both have limitation so came up with below approach.
    Lets say in FSCM application we dont use all the modules but load cache program loads unnecessary objects we know what are all the pages is being used and mostly the expensive pages.With respect to that page we created a PTF script and run the script with a temporary app server domain with one PSAPPSRV process. so now we have all the objects cached in single PSAPPSRV then we load the cache through script to all the 8 PSAPPSRV .

    Sample script below. i hope this will help someone who is really looking to use load cache program.

    $PS_HOME/appserv/psadmin -c shutdown! -d 2
    sleep 2
    $PS_HOME/appserv/psadmin -c purge -d 2
    sleep 2

    clean the caches for Appserver

    mkdir ${PS_CFG_HOME}/appserv//CACHE
    mkdir ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1
    cd ${PS_CFG_HOME}/appserv/prcs//CACHE/STAGE/stage/

    cp . ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_1/
    sleep 2
    cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_2
    cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_3
    cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_4
    cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_5
    cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_6
    cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_7
    cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_8
    sleep 2
    $PS_HOME/appserv/psadmin -c boot -d

  2. Dan – Just thought of sharing. We also use same Hybrid cache and its definitely a performance boost. but main problem is it just loads unnecessary cache and makes the cache file to grow upto 3GB(per domain it holds 25GB). Alsoo PSAPPSRV has to read the bunch of dat files to get the object .

    What i observed in shared cache is , when i enable this option cache becomes read only and all the dynamic object cache will store in PSAPPSRV memory. But recycle count parameter makes PSAPPSRV to restart every nth count. so when it restarts it needs to bring all the dynamic cache to the memory and makes my system worse than ever . so i took the decision to use hybrid cache.

    Since both have limitation so came up with below approach. Lets say in FSCM application we dont use all the modules but load cache program loads unnecessary objects we know what are all the pages is being used and mostly the expensive pages.With respect to that page we created a PTF script and run the script with a temporary app server domain with one PSAPPSRV process. so now we have all the objects cached in single PSAPPSRV then we load the cache through script to all the 8 PSAPPSRV .

    Sample script below. i hope this will help someone who is really looking to use load cache program.

    $PS_HOME/appserv/psadmin -c shutdown! -d 2 sleep 2 $PS_HOME/appserv/psadmin -c purge -d 2 sleep 2

    clean the caches for Appserver
    mkdir ${PS_CFG_HOME}/appserv//CACHE mkdir ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 cd ${PS_CFG_HOME}/appserv/prcs//CACHE/STAGE/stage/

    cp . ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_1/ sleep 2 cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_2 cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_3 cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_4 cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_5 cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_6 cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_7 cp -r ${PS_CFG_HOME}/appserv//CACHE/PSAPPSRV_1 ${PS_CFG_HOME}/appserv/2/CACHE/PSAPPSRV_8 sleep 2 $PS_HOME/appserv/psadmin -c boot -d

Leave a Reply to Velu Cancel reply

Your email address will not be published. Required fields are marked *