Re: [Virtuoso-users] infrequent errors on parallel querying

2016-03-02 Thread Hugh Williams
Hi Andreas,

The select top 10 * from sys_l_stat order by waits desc; queries from the 8891 
& 8895 instances do not show an excessive number of waits, only about 1990+ 
waits on the SYS_DAV_QUEUE index. When you ran those queries was the system 
under  typical work load ie  was the long running query being run at the time ? 
Note you should also run the query a number of time to get a sample of the 
waits as indicated at:

http://docs.openlinksw.com/virtuoso/databaseadmsrv.html#perfdiaglocking

I certainly would have expected a larger number of waits on the 8891 instance 
where the "WARNING: * Monitor: Many lock waits”  errors where occurring 
extensively in the log …

You indicate the "transaction deadlock and No ext map for dp 3193852 in 
uncommitted blob cpt” on the 8895 instance only occur when running several 
queries in parallel, so this would be the time to be running the query to check 
for locks/waits. How many of these queries are typically being run in parallel 
? Also are these queries being executed via the /sparql end point ie HTTP  or 
SQL interface ?

Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc.  //  http://www.openlinksw.com/
Weblog   -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter  -- http://twitter.com/OpenLink
Google+  -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers



> On 2 Mar 2016, at 17:31, Nolle, Andreas  wrote:
> 
> Dear Hugh,
> 
> please find the requested information about top50 
> athttps://www.dropbox.com/s/ylrb20ylze38cj6/top50.zip?dl=0
> 
> Please notice that both errors (transaction deadlock and No ext map for dp 
> 3193852 in uncommitted blob cpt) only occur if I run several queries (of the 
> type already mentioned) in parallel.
> Since my assumption is that especially the transaction deadlock error is 
> probably related to the long evaluation time, I haven’t restarted my 
> application so far…
> However, I will run a database integrity check and perform a +crash-dump and 
> restore to eliminate the “uncommitted blob” errors in the next run of my 
> application.
> 
> Best regards
> Andy



smime.p7s
Description: S/MIME cryptographic signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] infrequent errors on parallel querying

2016-03-02 Thread Nolle, Andreas
Dear Hugh,

please find the requested information about top50 at 
https://www.dropbox.com/s/ylrb20ylze38cj6/top50.zip?dl=0

Please notice that both errors (transaction deadlock and No ext map for dp 
3193852 in uncommitted blob cpt) only occur if I run several queries (of the 
type already mentioned) in parallel.
Since my assumption is that especially the transaction deadlock error is 
probably related to the long evaluation time, I haven’t restarted my 
application so far…
However, I will run a database integrity check and perform a +crash-dump and 
restore to eliminate the “uncommitted blob” errors in the next run of my 
application.

Best regards
Andy


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] infrequent errors on parallel querying

2016-03-02 Thread Kingsley Idehen
On 3/2/16 9:30 AM, Nolle, Andreas wrote:
>
> Dear Kingsley,
>
>  
>
> thanks for your reply.
>
>  
>
> The overall triple counts of each instance is
>
>   - Virtuoso instance running at port 8891: 17765873 triples
>
>   - Virtuoso instance running at port 8893: 27897291 triples
>
>   - Virtuoso instance running at port 8895: 16956 triples
>
>   - Virtuoso instance running at port 8899: 72372256 triples
>
>  
>
> If you are interested in the ini files, you can find the current
> versions at
> https://www.dropbox.com/s/awdx744vomsb5vr/virtuoso_ini.zip?dl=0
>
>  
>
> For profiling I just used simple the test queries such that it is
> probably easier to find out the problem. By doing so, I came to the
> assumption that especially the size of the result set causes really
> long query evaluation time:
>
> If I run q1:
>
>SELECT ?x ?b
>
>WHERE {
>
>   SERVICE  {
>
>  ?x  ?b .
>
>   } .
>
>}
>
> at lets say Virtuoso instance running at port 8895 it will end up
> within 2 minutes. This is because the service call will return only
> 32562 results.
>
>  
>
> But if I run q2:
>
>SELECT ?x ?b
>
>WHERE {
>
>   SERVICE  {
>
>  ?x  ?b .
>
>   } .
>
>}
>
> where the service call returns 313421 results, the query evaluation on
> the same instance (running at port 8895) will take something around 1
> hour!
>
>  
>
> The corresponding explain and profile plans of those queries can be
> found at https://www.dropbox.com/s/ein0hxhtgk85ci9/analysis_files.zip?dl=0
>
> Please notice that *_federated means the queries are like above and
> are evaluated at the Virtuoso instance running at port 8895, and
> *_local means the evaluation of these queries (without SERVICE) at the
> Virtuoso instance running at port 8891.
>
>  
>
> On analyzing the long evaluation times, especially for q2 in the
> federated case, I found out that if q2 is for example evaluated at
> Virtuoso instance running at port 8895 and the Virtuoso instance
> running at port 8891 is shut downed after 5 minutes, the query
> evaluation still proceeds and ended after more than one hour with the
> same number of results (313421) as e.g. in the local evaluation.
>
>  
>
> Please let me know if you need any other information.
>
>  
>
> Best regards
>
> Andy
>

Andy,

Okay I think we have enough information to work with.



-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] infrequent errors on parallel querying

2016-03-02 Thread Hugh Williams
Hi Andreas,

Analysing  your logs further I see:

1. On the remote (8891) instance the SERVICE keyword references I  see many 
occurrences of the following in there log:

07:11:34 WARNING: * Monitor: Many lock waits
07:13:34 WARNING: * Monitor: Many lock waits
07:15:43 WARNING: * Monitor: Many lock waits
07:17:45 WARNING: * Monitor: Many lock waits
07:19:34 WARNING: * Monitor: Should read for update because lock escalation 
from shared to exclusive fails frequently (1)
07:19:34 WARNING: * Monitor: Locks are held for a long time
07:19:46 WARNING: * Monitor: Many lock waits

and status shows 12 deadlocks and thousands of occurrences of the following 
messaged in the output:

Lock Status: 12 deadlocks of which 0 2r1w, 107 waits,
   Currently 10 threads running 7 threads waiting 0 threads in vdb.
Pending:
  82435: IER 141.87.4.9 
  212: IER 141.87.4.9 
  208: IER 141.87.4.9 
  213: IER 141.87.4.9 
  138756: IER 141.87.4.9 
  276: IER 141.87.4.9 
  137220: IER 141.87.4.9 
.
.
.

The deadlocks are not a problem per say , it is more the many pending waits. 
Thus as indicated in the performance tuning link 
(http://docs.openlinksw.com/virtuoso/databaseadmsrv.html#ptune 
) sent 
previously please provide the output of running the query:

select top 50 *  sys_l_stat order by wait_msecs desc

To see in which table all the waits are pending on …

2. On the local instance (8895) the queries are being run from I see many 
occurrences of these errors in the logs:

01:13:01 ERROR: No ext map for dp 3193852 in uncommitted blob cpt
01:13:01 ERROR: No ext map for dp 3193853 in uncommitted blob cpt
01:13:01 ERROR: No ext map for dp 3193854 in uncommitted blob cpt
01:13:01 ERROR: No ext map for dp 3193855 in uncommitted blob cpt
01:13:04 INFO: Checkpoint finished, log reused
01:45:34 WARNING: * Monitor: Locks are held for a long time
01:45:35 INFO: Free blob page refd start = 2319104 L=2319104 
01:45:35 ERROR: Blob starting L=2319104 inconsistent before delete.  Not deleted
01:45:35 INFO: Free blob page refd start = 2319105 L=2319105 
01:45:35 ERROR: Blob starting L=2319105 inconsistent before delete.  Not deleted
01:45:35 INFO: Free blob page refd start = 2319106 L=2319106 
01:45:35 ERROR: Blob starting L=2319106 inconsistent before delete.  Not deleted
01:45:35 INFO: Free blob page refd start = 2319107 L=2319107 

Thus you should first running a database integrity check on the database:

backup ‘/dev/null’

and perform a +crash-dump and restore of the database to eliminate these errors 
as detailed at:


http://docs.openlinksw.com/virtuoso/databaseadmsrv.html#diagnosingrepairing 


Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc.  //  http://www.openlinksw.com/
Weblog   -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter  -- http://twitter.com/OpenLink
Google+  -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers



> On 2 Mar 2016, at 14:30, Nolle, Andreas  wrote:
> 
> Dear Kingsley,
>  
> thanks for your reply.
>  
> The overall triple counts of each instance is
>   - Virtuoso instance running at port 8891: 17765873 triples
>   - Virtuoso instance running at port 8893: 27897291 triples
>   - Virtuoso instance running at port 8895: 16956 triples
>   - Virtuoso instance running at port 8899: 72372256 triples
>  
> If you are interested in the ini files, you can find the current versions 
> athttps://www.dropbox.com/s/awdx744vomsb5vr/virtuoso_ini.zip?dl=0 
> 
>  
> For profiling I just used simple the test queries such that it is probably 
> easier to find out the problem. By doing so, I came to the assumption that 
> especially the size of the result set causes really long query evaluation 
> time:
> If I run q1:
>SELECT ?x ?b
>WHERE {
>   SERVICE > 
> {
>  ?x  > ?b .
>   } .
>}
> at lets say Virtuoso instance running at port 8895 it will end up within 2 
> minutes. This is because the service call will return only 32562 results.
>  
> But if I run q2:
>SELECT ?x ?b
>WHERE {
>   SERVICE > 
> {
>  ?x  > ?b .
>   } .
>}
> where the service call returns 313421 results, the query evaluation on the 
> same instance (running at port 8895) will take something around 1 hour!
>  
> The corresponding explain and 

Re: [Virtuoso-users] infrequent errors on parallel querying

2016-03-02 Thread Nolle, Andreas
Dear Kingsley,

thanks for your reply.

The overall triple counts of each instance is
  - Virtuoso instance running at port 8891: 17765873 triples
  - Virtuoso instance running at port 8893: 27897291 triples
  - Virtuoso instance running at port 8895: 16956 triples
  - Virtuoso instance running at port 8899: 72372256 triples

If you are interested in the ini files, you can find the current versions at 
https://www.dropbox.com/s/awdx744vomsb5vr/virtuoso_ini.zip?dl=0



For profiling I just used simple the test queries such that it is probably 
easier to find out the problem. By doing so, I came to the assumption that 
especially the size of the result set causes really long query evaluation time:

If I run q1:

   SELECT ?x ?b

   WHERE {

  SERVICE  {

 ?x  ?b .

  } .

   }

at lets say Virtuoso instance running at port 8895 it will end up within 2 
minutes. This is because the service call will return only 32562 results.



But if I run q2:

   SELECT ?x ?b

   WHERE {

  SERVICE  {

 ?x  ?b .

  } .

   }

where the service call returns 313421 results, the query evaluation on the same 
instance (running at port 8895) will take something around 1 hour!



The corresponding explain and profile plans of those queries can be found at 
https://www.dropbox.com/s/ein0hxhtgk85ci9/analysis_files.zip?dl=0

Please notice that *_federated means the queries are like above and are 
evaluated at the Virtuoso instance running at port 8895, and *_local means the 
evaluation of these queries (without SERVICE) at the Virtuoso instance running 
at port 8891.



On analyzing the long evaluation times, especially for q2 in the federated 
case, I found out that if q2 is for example evaluated at Virtuoso instance 
running at port 8895 and the Virtuoso instance running at port 8891 is shut 
downed after 5 minutes, the query evaluation still proceeds and ended after 
more than one hour with the same number of results (313421) as e.g. in the 
local evaluation.



Please let me know if you need any other information.



Best regards

Andy


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] infrequent errors on parallel querying

2016-03-02 Thread Kingsley Idehen
On 3/2/16 4:24 AM, Nolle, Andreas wrote:
>
> Hi Hugh,
>
>  
>
> this was also my first guess, but the network is not the problem. This
> is definitively the case because I’ve evaluated again q2
>
>SELECT ?x ?b
>
>WHERE {
>
>   SERVICE  {
>
>  ?x  ?b .
>
>   } .
>
>}
>
> at Virtuoso instance running at port 8895 and SHUTDOWN the Virtuoso
> instance running at port 8891 after 5 minutes.
>
> The query evaluation hat still proceed and ended after more than one
> hour with the same number of results (313421).
>
> At that it doesn’t matter if the query is executed via isql or via the
> SPARQL interface (locally AND remote).
>
>  
>
> So for me it seems like a bug, because the Virtuoso at 8895 takes one
> hour despite the fact that no additional join or any other operation
> has to be done.
>
>  
>
> Best
>
> Andy
>

Andy,

There are a lot of factors that could come into play here. If you
haven't already done so, please provide query and result times for
queries against each of the individual instances in this SPARQL-FED
query. The goal would be to at least eliminate any local issues.

Also shed some light on the triple count per each of these instances.

Ultimately we have a network or query optimizer issue in play, we just
need a productive route to determining which of these it is..

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Error installing ODS Weblog

2016-03-02 Thread Hugh Williams
Hi Nashwa,

A set of Open Source VADs have been uploaded to the download server which 
resolve this problem …

Note if you compile your own binary then you can also use the  configure 
--enable-ods-vad to build the ODS VADs or —-enable-all-vads to build ALL the 
available VADs …

Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc.  //  http://www.openlinksw.com/
Weblog   -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter  -- http://twitter.com/OpenLink
Google+  -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers



> On 2 Mar 2016, at 02:45, Hugh Williams  wrote:
> 
> Hi 
> 
> I get a similar error, we shall look into this …
> 
> Best Regards
> Hugh Williams
> Professional Services
> OpenLink Software, Inc.  //  http://www.openlinksw.com/
> Weblog   -- http://www.openlinksw.com/blogs/
> LinkedIn -- http://www.linkedin.com/company/openlink-software/
> Twitter  -- http://twitter.com/OpenLink
> Google+  -- http://plus.google.com/100570109519069333827/
> Facebook -- http://www.facebook.com/OpenLinkSoftware
> Universal Data Access, Integration, and Management Technology Providers
> 
> 
> 
>> On 6 Feb 2016, at 21:32, Nashwa Nabel  wrote:
>> 
>> Hi all members,
>> Hi Hugh Williams Especially,
>> 
>> I tried to install the ODS Weblog from:
>> http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VOSDownload#ODS 
>> Applications
>> but it crashed with the following error:
>> 
>> 0 Errors detected
>> 0 Installation of "ODS Weblog" was unsuccessful.
>>   The installation of this VAD package has failed.
>>   Please delete the transaction file 
>> /usr/local/virtuoso-opensource/var/lib/virtuoso/db//usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.trx
>>   and then restart your database server.
>>   Note: Your database will be in its pre VAD installation state after 
>> you restart.
>> 0 FATAL
>>   
>> 
>> 
>> 
>> Thanks for your help in advance.
>>  
>>  
>>  
>> Best Regards,
>> --
>> Nashwa Nabil,
>> Teaching Assistant,
>> Information System Department,
>> Faculty of computer and Information,
>> --
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
>> Virtuoso-users mailing list
>> Virtuoso-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
> 
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users



smime.p7s
Description: S/MIME cryptographic signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] infrequent errors on parallel querying

2016-03-02 Thread Nolle, Andreas
Hi Hugh,

this was also my first guess, but the network is not the problem. This is 
definitively the case because I’ve evaluated again q2

   SELECT ?x ?b

   WHERE {

  SERVICE  {

 ?x  ?b .

  } .

   }
at Virtuoso instance running at port 8895 and SHUTDOWN the Virtuoso instance 
running at port 8891 after 5 minutes.
The query evaluation hat still proceed and ended after more than one hour with 
the same number of results (313421).
At that it doesn’t matter if the query is executed via isql or via the SPARQL 
interface (locally AND remote).

So for me it seems like a bug, because the Virtuoso at 8895 takes one hour 
despite the fact that no additional join or any other operation has to be done.

Best
Andy

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users