简体   繁体   English

Websphere Commerce + SolR:触发了完全相同的SolR查询-如何调试它?

[英]Websphere Commerce + SolR: Burst of identical SolR queries fired - how to debug it?

Out store is based on FEP4 and Madisons. 出库基于FEP4和Madisons。

When we reload our store front page, we see bursts of identical SolR calls like these below. 当我们重新加载商店首页时,我们看到如下所示的相同SolR调用的爆发。

EDIT: Note that it's lookups for the exact same product. 编辑:请注意,它是针对完全相同的产品的查找。 So if we have 2 products we see 2 * 12 = 24 lookups, with two groups of 12 identical calls bursted right after each other. 因此,如果我们有2个产品,我们将看到2 * 12 = 24个查找,两组12个相同的调用彼此紧接着突然爆发。

How do we find out what causes these to be fired off? 我们如何找出导致这些事件被解雇的原因? Yes, the results will likely be cached, but this is for each product, and on a heavy page the xmit/get/unpack/store work adds up to several seconds... 是的,结果可能会被缓存,但这是针对每种产品的,在繁重的页面上,xmit / get / unpack / store工作加起来要花费几秒钟...

[10/23/13 18:27:26:933 CEST] 00000160 SystemOut     O WARN  [threadName='WebContainer : 0'] UserDataHelper.getXMBRCLUBRELAccessBean - No XMbrClubRel entry was found for userId -1002 in club 001
[10/23/13 18:27:27:217 CEST] 00000162 SolrCore      I org.apache.solr.core.SolrCore execute [MC_10001_CatalogEntry_da_DK] webapp=/solr path=/select params={q=catentry_id:250059&start=0&timeAllowed=5000&wt=javabin&version=1&fq=storeent_id:("10151"+"10051")&fq=published:1&fq=(+%2B((((+%2BparentCatgroup_id_search:10001_10001+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_24451+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_32968+%2Bads_f17_ntk_cs:"1")+parentCatgroup_id_search:10001_32972+(+%2BparentCatgroup_id_search:10001_32973+%2Bads_f17_ntk_cs:"1"))+productset_id:("10004")+)+productset_id:("10003")+)+%2B*:*)&debugQuery=false&fl=catentry_id,price_DKK,storeent_id&rows=50} hits=1 status=0 QTime=7 
[10/23/13 18:27:27:282 CEST] 00000162 SolrCore      I org.apache.solr.core.SolrCore execute [MC_10001_CatalogEntry_da_DK] webapp=/solr path=/select params={q=catentry_id:250059&start=0&timeAllowed=5000&wt=javabin&version=1&fq=storeent_id:("10151"+"10051")&fq=published:1&fq=(+%2B((((+%2BparentCatgroup_id_search:10001_10001+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_24451+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_32968+%2Bads_f17_ntk_cs:"1")+parentCatgroup_id_search:10001_32972+(+%2BparentCatgroup_id_search:10001_32973+%2Bads_f17_ntk_cs:"1"))+productset_id:("10004")+)+productset_id:("10003")+)+%2B*:*)&debugQuery=false&fl=catentry_id,price_DKK,storeent_id&rows=50} hits=1 status=0 QTime=7 
[10/23/13 18:27:27:353 CEST] 00000162 SolrCore      I org.apache.solr.core.SolrCore execute [MC_10001_CatalogEntry_da_DK] webapp=/solr path=/select params={q=catentry_id:250059&start=0&timeAllowed=5000&wt=javabin&version=1&fq=storeent_id:("10151"+"10051")&fq=published:1&fq=(+%2B((((+%2BparentCatgroup_id_search:10001_10001+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_24451+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_32968+%2Bads_f17_ntk_cs:"1")+parentCatgroup_id_search:10001_32972+(+%2BparentCatgroup_id_search:10001_32973+%2Bads_f17_ntk_cs:"1"))+productset_id:("10004")+)+productset_id:("10003")+)+%2B*:*)&debugQuery=false&fl=catentry_id,price_DKK,storeent_id&rows=50} hits=1 status=0 QTime=7 
[10/23/13 18:27:27:445 CEST] 00000162 SolrCore      I org.apache.solr.core.SolrCore execute [MC_10001_CatalogEntry_da_DK] webapp=/solr path=/select params={q=catentry_id:246411&start=0&timeAllowed=5000&wt=javabin&version=1&fq=storeent_id:("10151"+"10051")&fq=published:1&fq=(+%2B((((+%2BparentCatgroup_id_search:10001_10001+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_24451+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_32968+%2Bads_f17_ntk_cs:"1")+parentCatgroup_id_search:10001_32972+(+%2BparentCatgroup_id_search:10001_32973+%2Bads_f17_ntk_cs:"1"))+productset_id:("10004")+)+productset_id:("10003")+)+%2B*:*)&debugQuery=false&fl=catentry_id,price_DKK,storeent_id&rows=50} hits=1 status=0 QTime=6 
[10/23/13 18:27:27:526 CEST] 00000162 SolrCore      I org.apache.solr.core.SolrCore execute [MC_10001_CatalogEntry_da_DK] webapp=/solr path=/select params={q=catentry_id:246411&start=0&timeAllowed=5000&wt=javabin&version=1&fq=storeent_id:("10151"+"10051")&fq=published:1&fq=(+%2B((((+%2BparentCatgroup_id_search:10001_10001+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_24451+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_32968+%2Bads_f17_ntk_cs:"1")+parentCatgroup_id_search:10001_32972+(+%2BparentCatgroup_id_search:10001_32973+%2Bads_f17_ntk_cs:"1"))+productset_id:("10004")+)+productset_id:("10003")+)+%2B*:*)&debugQuery=false&fl=catentry_id,price_DKK,storeent_id&rows=50} hits=1 status=0 QTime=6 
[10/23/13 18:27:27:594 CEST] 00000162 SolrCore      I org.apache.solr.core.SolrCore execute [MC_10001_CatalogEntry_da_DK] webapp=/solr path=/select params={q=catentry_id:246411&start=0&timeAllowed=5000&wt=javabin&version=1&fq=storeent_id:("10151"+"10051")&fq=published:1&fq=(+%2B((((+%2BparentCatgroup_id_search:10001_10001+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_24451+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_32968+%2Bads_f17_ntk_cs:"1")+parentCatgroup_id_search:10001_32972+(+%2BparentCatgroup_id_search:10001_32973+%2Bads_f17_ntk_cs:"1"))+productset_id:("10004")+)+productset_id:("10003")+)+%2B*:*)&debugQuery=false&fl=catentry_id,price_DKK,storeent_id&rows=50} hits=1 status=0 QTime=7 
[10/23/13 18:27:27:681 CEST] 00000162 SolrCore      I org.apache.solr.core.SolrCore execute [MC_10001_CatalogEntry_da_DK] webapp=/solr path=/select params={q=catentry_id:243989&start=0&timeAllowed=5000&wt=javabin&version=1&fq=storeent_id:("10151"+"10051")&fq=published:1&fq=(+%2B((((+%2BparentCatgroup_id_search:10001_10001+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_24451+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_32968+%2Bads_f17_ntk_cs:"1")+parentCatgroup_id_search:10001_32972+(+%2BparentCatgroup_id_search:10001_32973+%2Bads_f17_ntk_cs:"1"))+productset_id:("10004")+)+productset_id:("10003")+)+%2B*:*)&debugQuery=false&fl=catentry_id,price_DKK,storeent_id&rows=50} hits=1 status=0 QTime=5 
[10/23/13 18:27:27:748 CEST] 00000162 SolrCore      I org.apache.solr.core.SolrCore execute [MC_10001_CatalogEntry_da_DK] webapp=/solr path=/select params={q=catentry_id:243989&start=0&timeAllowed=5000&wt=javabin&version=1&fq=storeent_id:("10151"+"10051")&fq=published:1&fq=(+%2B((((+%2BparentCatgroup_id_search:10001_10001+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_24451+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_32968+%2Bads_f17_ntk_cs:"1")+parentCatgroup_id_search:10001_32972+(+%2BparentCatgroup_id_search:10001_32973+%2Bads_f17_ntk_cs:"1"))+productset_id:("10004")+)+productset_id:("10003")+)+%2B*:*)&debugQuery=false&fl=catentry_id,price_DKK,storeent_id&rows=50} hits=1 status=0 QTime=7 
[10/23/13 18:27:27:818 CEST] 00000162 SolrCore      I org.apache.solr.core.SolrCore execute [MC_10001_CatalogEntry_da_DK] webapp=/solr path=/select params={q=catentry_id:243989&start=0&timeAllowed=5000&wt=javabin&version=1&fq=storeent_id:("10151"+"10051")&fq=published:1&fq=(+%2B((((+%2BparentCatgroup_id_search:10001_10001+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_24451+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_32968+%2Bads_f17_ntk_cs:"1")+parentCatgroup_id_search:10001_32972+(+%2BparentCatgroup_id_search:10001_32973+%2Bads_f17_ntk_cs:"1"))+productset_id:("10004")+)+productset_id:("10003")+)+%2B*:*)&debugQuery=false&fl=catentry_id,price_DKK,storeent_id&rows=50} hits=1 status=0 QTime=8 
[10/23/13 18:27:27:902 CEST] 00000162 SolrCore      I org.apache.solr.core.SolrCore execute [MC_10001_CatalogEntry_da_DK] webapp=/solr path=/select params={q=catentry_id:250059&start=0&timeAllowed=5000&wt=javabin&version=1&fq=storeent_id:("10151"+"10051")&fq=published:1&fq=(+%2B((((+%2BparentCatgroup_id_search:10001_10001+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_24451+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_32968+%2Bads_f17_ntk_cs:"1")+parentCatgroup_id_search:10001_32972+(+%2BparentCatgroup_id_search:10001_32973+%2Bads_f17_ntk_cs:"1"))+productset_id:("10004")+)+productset_id:("10003")+)+%2B*:*)&debugQuery=false&fl=catentry_id,price_DKK,storeent_id&rows=50} hits=1 status=0 QTime=8 
[10/23/13 18:27:27:965 CEST] 00000162 SolrCore      I org.apache.solr.core.SolrCore execute [MC_10001_CatalogEntry_da_DK] webapp=/solr path=/select params={q=catentry_id:246411&start=0&timeAllowed=5000&wt=javabin&version=1&fq=storeent_id:("10151"+"10051")&fq=published:1&fq=(+%2B((((+%2BparentCatgroup_id_search:10001_10001+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_24451+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_32968+%2Bads_f17_ntk_cs:"1")+parentCatgroup_id_search:10001_32972+(+%2BparentCatgroup_id_search:10001_32973+%2Bads_f17_ntk_cs:"1"))+productset_id:("10004")+)+productset_id:("10003")+)+%2B*:*)&debugQuery=false&fl=catentry_id,price_DKK,storeent_id&rows=50} hits=1 status=0 QTime=6 
[10/23/13 18:27:28:033 CEST] 00000162 SolrCore      I org.apache.solr.core.SolrCore execute [MC_10001_CatalogEntry_da_DK] webapp=/solr path=/select params={q=catentry_id:243989&start=0&timeAllowed=5000&wt=javabin&version=1&fq=storeent_id:("10151"+"10051")&fq=published:1&fq=(+%2B((((+%2BparentCatgroup_id_search:10001_10001+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_24451+%2Bads_f17_ntk_cs:"1")+(+%2BparentCatgroup_id_search:10001_32968+%2Bads_f17_ntk_cs:"1")+parentCatgroup_id_search:10001_32972+(+%2BparentCatgroup_id_search:10001_32973+%2Bads_f17_ntk_cs:"1"))+productset_id:("10004")+)+productset_id:("10003")+)+%2B*:*)&debugQuery=false&fl=catentry_id,price_DKK,storeent_id&rows=50} hits=1 status=0 QTime=7 

Looks like this is one for some category or search page. 看起来这是某个类别或搜索页面的页面。 where for each and every product/item panel you are running a solr call (CatalogNavigationView BOD call from jsp which internally fires) to get a details. 其中对于每一个产品/项目面板,您正在运行的Solr调用(从JSP在内部触发CatalogNavigationView BOD调用)获得详细信息。

You can change the way of you code flow by getting all data in a single BOD call, by passing multiple unique ids to single BOD call. 您可以通过在单个BOD调用中获取所有数据,将多个唯一ID传递给单个BOD调用来更改代码流的方式。

Moreover i feel SOLR calls are very light in nature so there is no much performance drawback for these number of calls. 此外,我觉得SOLR呼叫本质上非常轻巧,因此这些数目的呼叫在性能上没有太多缺点。

One really easy and quick win for websphere commerce performance is turing on the data object cache, I really don't know why they don't turn this on be default. Websphere电子商务性能的一个真正轻松快捷的胜利就是依靠数据对象缓存,我真的不知道为什么他们不将其默认设置为打开。

http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.admin.doc/tasks/tdcenabcommdatacache.htm http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.admin.doc/tasks/tdcenabcommdatacache.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM