Try increasing taskomatics working memory. I had a similar issue recently with taskomatic where my repo syncs were using more ram than allowed. The default is 1 GB I increase it to two and my problem went away<br><br><span style="font-family:Prelude, Verdana, san-serif;"><br><br></span><span id="signature"><div style="font-family: arial, sans-serif; font-size: 12px;color: #999999;">-- Sent from my HP Pre3</div><br></span><span style="color:navy; font-family:Prelude, Verdana, san-serif; "><hr align="left" style="width:75%">On May 2, 2014 19:01, Jon Miller <jonebird@gmail.com> wrote: <br><br></span>My current plan is to stop Spacewalk this evening, dump the DB, recreate the <br>DB and load my data back. Why? I was troubleshooting another issue related to <br>clients that use a Spacewalk proxy. While I was strace'ing Tomcat, I found <br>that forked processes were segfault'ing and the thing they did just before <br>was reading from a PostgreSQL socket. My evening procedure is going off the <br>theory that my DB is somehow corrupted.  <br> <br>Meanwhile, here are some specs on our Spacewalk server: <br>- VMware instance running RHEL 6.4 <br>  + 8GB of memory, 2 vCPUs <br>- PosgresSQL version 8.4.13-1.el6_3.x86_64 <br>- Spacewalk version 2.0.1-1 (spacewalk-postgresql) <br> <br>Thanks for the interest, <br>Jon Miller <br> <br>Paul Robert Marino <prmarino1@gmail.com> writes: <br> <br>> Increase your working memory. Also increase your maintenance working <br>> memory. <br>> That will help but we need to know more details before we can help. <br>> The exact specs of the box. <br>> The PostgreSQL configuration. <br>> The exact version of PostgreSQL you are running there are huge differences <br>> between 8 and 9. <br>> What OS and version you are running on. For example I run PostgreSQL 9.x on <br>> RHEL 6 which causes huge problems unless you change the default java driver <br>> which was at the time I did it a manual operation. And this can also be a <br>> problem for external PostgreSQL databases. <br>> <br>> -- Sent from my HP Pre3 <br>> <br>> --------------------------------------------------------------------------- <br>> On May 1, 2014 21:52, Jon Miller <jonebird@gmail.com> wrote:  <br>> <br>> Chris <dmagick@gmail.com> writes:  <br>> <br>>>> Thanks for the reply. I wondered if I could do that but it would have <br>> been a  <br>>>> while before I would have came up with that query. Perhaps upstream <br>> folks  <br>>>> would like to test that version for Task_queries.xml within the git <br>> repo.  <br>>>>  <br>>>> Like before, I like to turn it into a "select count(*)" version first as <br>> a  <br>>>> test. I ran it and forgot about it until I realized it was still running <br>> and  <br>>>> killed it after ~3.5hours.  <br>>>>  <br>>>> spaceschema=# select count(*) from rhnPackageChangeLogData where id in  <br>>>> spaceschema-# (SELECT d.id from rhnPackageChangeLogData d  <br>>>> spaceschema(# left join rhnPackageChangeLogRec l on <br>> (d.id=l.changelog_data_id)  <br>>>> spaceschema(# where l.changelog_data_id is null);  <br>>>> ^C  <br>>>> Session terminated, killing shell... ...killed.  <br>>>  <br>>> Yikes.  <br>>>  <br>>> Time to check indexes? Check there is one on  <br>>> rhnpackagechangelogrec(changelog_data_id):  <br>>>  <br>>> spacewalk=# \d rhnpackagechangelogrec  <br>>> Table "public.rhnpackagechangelogrec"  <br>>> Column | Type | Modifiers  <br>>> -------------------+--------------------------+------------------------  <br>>> id | numeric | not null  <br>>> package_id | numeric | not null  <br>>> changelog_data_id | numeric | not null  <br>>> created | timestamp with time zone | not null default now()  <br>>> modified | timestamp with time zone | not null default now()  <br>>> Indexes:  <br>>> "rhn_pkg_clr_id_pk" PRIMARY KEY, btree (id)  <br>>> "rhn_pkg_clr_pid_cld_uq" UNIQUE, btree (package_id, changelog_data_id)  <br>>> "rhn_pkg_clr_cld_uq" btree (changelog_data_id)  <br>>>  <br>>> <snip>  <br>> <br>> Yes, I have the same indexes:  <br>> spaceschema=# \d rhnpackagechangelogrec  <br>> Table "public.rhnpackagechangelogrec"  <br>> Column | Type | Modifiers  <br>> -------------------+--------------------------+------------------------  <br>> id | numeric | not null  <br>> package_id | numeric | not null  <br>> changelog_data_id | numeric | not null  <br>> created | timestamp with time zone | not null default now()  <br>> modified | timestamp with time zone | not null default now()  <br>> Indexes:  <br>> "rhn_pkg_clr_id_pk" PRIMARY KEY, btree (id)  <br>> "rhn_pkg_clr_pid_cld_uq" UNIQUE, btree (package_id, changelog_data_id)  <br>> "rhn_pkg_clr_cld_uq" btree (changelog_data_id)  <br>> <br>>> and the one on 'id' in changelogData should be there because it's a  <br>>> primary key:  <br>>>  <br>>> spacewalk=# \d rhnpackagechangelogdata  <br>>> Table "public.rhnpackagechangelogdata"  <br>>> Column | Type | Modifiers  <br>>> ---------+--------------------------+------------------------  <br>>> id | numeric | not null  <br>>> name | character varying(128) | not null  <br>>> text | character varying(3000) | not null  <br>>> time | timestamp with time zone | not null  <br>>> created | timestamp with time zone | not null default now()  <br>>> Indexes:  <br>>> "rhn_pkg_cld_id_pk" PRIMARY KEY, btree (id)  <br>>>  <br>>> <snip>  <br>> <br>> Same here as well or perhaps an extra one? (maybe you snipped too much?)  <br>> spaceschema=# \d rhnpackagechangelogdata  <br>> Table "public.rhnpackagechangelogdata"  <br>> Column | Type | Modifiers  <br>> ---------+--------------------------+------------------------  <br>> id | numeric | not null  <br>> name | character varying(128) | not null  <br>> text | character varying(3000) | not null  <br>> time | timestamp with time zone | not null  <br>> created | timestamp with time zone | not null default now()  <br>> Indexes:  <br>> "rhn_pkg_cld_id_pk" PRIMARY KEY, btree (id)  <br>> "rhn_pkg_cld_nt_idx" btree (name, "time")  <br>> <br>> Two days ago I actually shutdown Spacewalk so I could do a "VACUUM FULL  <br>> VERBOSE ANALYZE;" and then I rebuild every index on the DB before bringing  <br>> Spacewalk back up again.  <br>> <br>> While the query was running yesterday, I was watching a "vmstat" output and  <br>> while it was busy, there didn't seem to be any blatant resource constraint  <br>> with the system on the whole. A lot of block I/O and the occasional swap  <br>> activity but definitely not thrashing.  <br>> <br>> Have you made any tweaks to your postgresql.conf that you can share? That <br>> is  <br>> where my head is now but I've got more reading / learning to do before I  <br>> start introducing tuning changes.  <br>> <br>> Thanks,  <br> <br>_______________________________________________ <br>Spacewalk-list mailing list <br>Spacewalk-list@redhat.com <br>https://www.redhat.com/mailman/listinfo/spacewalk-list <br>