[prev in list] [next in list] [prev in thread] [next in thread]
List: nepomuk
Subject: [Nepomuk] virtuoso patch for status();
From: David Faure <faure () kde ! org>
Date: 2012-07-04 8:38:49
Message-ID: 4000803.PA257bJxqz () asterix ! site
[Download RAW message or body]
Hi,
I learned from Vishesh a few days ago that in order to see the running queries in virtuoso,
one can use isql-vt and type status();
However this has issues.
First problem: giving it the port number where virtuoso-t is running. This can be automated
using a script like this: http://www.davidfaure.fr/kde/virtuoso_isql_debug (at least on OpenSUSE).
Second problem: the queries are shown truncated. This can be fixed by applying the
attached patch to virtuoso.
http://kdeatopensuse.wordpress.com/2011/11/09/debugging-nepomukvirtuosos-cpu-usage/
seems to have other hints, including getting the current query from nepomukserver using dbus,
which is an alternative solution.
--
David Faure, faure@kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5
["virtuoso-opensource-status.patch" (virtuoso-opensource-status.patch)]
--- libsrc/Wi/srvstat.c.orig 2012-07-04 08:46:22.956035001 +0200
+++ libsrc/Wi/srvstat.c 2012-07-04 08:59:04.972055406 +0200
@@ -1085,7 +1085,7 @@ status_report (const char * mode, query_
{
if (DV_TYPE_OF (data) == DV_C_STRING)
- rep_printf ("%.80s\n", data);
+ rep_printf ("%s\n", data);
else
rep_printf ("%12ld ", unbox (data));
dk_free_box (data);
_______________________________________________
Nepomuk mailing list
Nepomuk@kde.org
https://mail.kde.org/mailman/listinfo/nepomuk
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic