LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2015, 07:06 PM   #1
sharky
Member
 
Registered: Oct 2002
Posts: 569

Rep: Reputation: 84
Why does my pyqt4 script take over 1GB of memory?


My question is in the subject.

Created a pyqt4 utility for end users. The GUI contains a stacked widget with 5 'pages'. Four of the 'pages' contain a tab widget and the last 'page' load an html doc into a webveiw - uses webkit.

Most of the tab widgets contain a few text widgets and command buttons.

There is also a tree view, a menu, and status bar.

It's not a simple dialog but 1GB or memory seems excessive to me. I don't suppose there is a way to reduce the memory footprint.
 
Old 05-29-2015, 07:14 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
If its not proprietry software can you post?
 
Old 05-29-2015, 07:15 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
It's Webkit...
 
Old 05-30-2015, 09:45 AM   #4
sharky
Member
 
Registered: Oct 2002
Posts: 569

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by Keith Hedger View Post
If its not proprietry software can you post?
It is proprietary and it's also over a thousand lines.
 
Old 05-30-2015, 09:46 AM   #5
sharky
Member
 
Registered: Oct 2002
Posts: 569

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by dugan View Post
It's Webkit...
When I get back to work Monday I will strip out the webkit portion and see what happens. I'll bet you're right.
 
Old 05-30-2015, 10:13 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
fair enough you can't post it but as an aside I use the gtk2 webkit in an editor as a help viewer and with it all running I only see 75M used, I am using it in 'c' as opposed to pyhton though.
 
Old 06-01-2015, 11:10 AM   #7
sharky
Member
 
Registered: Oct 2002
Posts: 569

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by dugan View Post
It's Webkit...
Confirmed. If I strip out webkit the memory footprint drops from 1.3G to 200M.

I use webkit to display a usage document so it is not critical to the actual function of the utility. Is there a less memory intensive way to display html?
 
Old 06-01-2015, 11:48 AM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Refering back to my preivious post In my app if the builtin webkit viewer is not built I just build the same html page but pass it to the default webbrowser with xdg-open, youshould be able to do this from python quite easily.
 
Old 06-01-2015, 02:38 PM   #9
sharky
Member
 
Registered: Oct 2002
Posts: 569

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by Keith Hedger View Post
Refering back to my preivious post In my app if the builtin webkit viewer is not built I just build the same html page but pass it to the default webbrowser with xdg-open, youshould be able to do this from python quite easily.
That's probably what I'll do.

Thanks,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Swapped memory with 1GB? gmontag79 Red Hat 0 02-09-2005 12:33 PM
1GB Memory? Why Sluggish??? tricky_linux Linux - Software 17 08-17-2004 05:28 AM
Back to 1GB memory lex0429 Mandriva 15 10-04-2003 02:51 PM
memory > 1GB a1penguin Linux - Newbie 10 07-22-2003 11:19 PM
kernel for 1GB memory nuzzy Linux - Software 1 06-02-2003 07:14 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration