Programming :: Application Process Starts Multiple Times?
Jul 15, 2011
I'm porting C++ application from ARM to MIPS platform. It works now, but I see some strange timing problems. I've seen now that My app process is called multiply time. Here is "top" output:
Mem: 24592K used, 102084K free, 0K shrd, 0K buff, 16864K cached
CPU: 0% usr 99% sys 0% nice 0% idle 0% io 0% irq 0% softirq
Load average: 4.02 2.17 0.95
PID PPID USER STAT VSZ %MEM %CPU COMMAND
1888 1875 admin R 12096 10% 98% ./my_app.exe
code....
I don't see something like this when I compile it for x86, nor ARM.On MIPS I use uClibc instead of glibc.
View 6 Replies
ADVERTISEMENT
Aug 6, 2010
Sometimes I connect to my Debian box from another computer (using SSH on Cygwin or Linux), and once ina while I want to run some console apps. And sometimes some of these apps might complain about "another intance, Error: an instance of newsbeuter is already running (PID: 2496)". Is there a work around for this issue at all(without killing the original instance") ? The reason I do not want to kill the app because there might be 2 users connected to the same machine that might be using the same app.
View 1 Replies
View Related
Mar 11, 2010
Is it possible to make an AWK script that goes over the file multiple times, every time doing something different to it?
View 19 Replies
View Related
Dec 7, 2010
I used wait4 to time a child process. but the results differ each other dramatically. why?my core source code lists as below.to the point: in linux 2.6 kernel, how to time a process with a high precision. and, only its user-time rather than the elapsed time???
static struct rusage ruse;
static pid_t u_pid;
int main(int argc, char *argv[])
{
int i;
code....
View 14 Replies
View Related
Dec 14, 2010
I'm programming some skript to get statistical information about some texts. This includes calculating the mean of word lengths.Unfortunately, Umlauts count as two characters. In the example below the output is 9, it should be 6.
sincercly, Max
Code:
#!/usr/bin/perl
use POSIX;
use locale;
my $test = length("ABC���");
print $test;
View 4 Replies
View Related
Feb 27, 2010
I have a string problem with a function I am writing and I cant figure it out. I am trying to write unit test which will verify it works as expected. As I need to make use of it elsewhere and obviously robust and correct enough that I can rely on it. Okay first of all I define the following structure
Code:
typedef struct strarray {
int size;
char **elements;
} strarray;
code....
My problem is that upon the 4th iteration in the loop realloc fails in strarray_add. glibc reports invalid next size.
View 6 Replies
View Related
Dec 23, 2010
I am using a C application which connects to various other C applications at different ports through TCP,sends requests to all of them and then waits for the responses. The problem is that when the requests are fewer it gives a good response but with the increase in load the port at which the master application is listening get hogs and is unable to receive the responses.Can you please suggest the best way to tackle this issue? Is it possible for the master application to listen at multiple ports so that the load gets distributed and how?
View 7 Replies
View Related
Sep 26, 2009
I use Fedora 11 and xfce from official repo. Xfce started to behave unstable two weeks ago. Unstable I mean, when I log in icons on desktop blinks few times, applets don't appear and the result of ps -A command is:
Code:
I've have found the same error with workaround on Ubuntu bug tracker: [url]
View 1 Replies
View Related
May 2, 2010
Whenever I'm running my application process, I've 1M physical memory usage is increasing for every 2 hours.This I observed using 'free -m' command.But 'top' command did not showing any increase 'RSS' size.It is same as it was started initially.Even though I stopped my process,the increased memory was not released back. If I start my application process then again memory usage start increasing by 1M for every 2 hours. increase of memory usage observer with 'free' and that too when my application is running, but top command is not showing any change in the RSS sizeIf my application is leaking any memory which is allocated by new/malloc, that should be released back whenever my application exit and the size increase will be show through top command for that process, right? This is not happeningThis proves that there is no potential leaks in my process.But why physical memory is increasing when only my process is running?
View 14 Replies
View Related
Nov 9, 2010
I have a process running on Linux.When i do ps -eaf | grep <myProcess>, it show muliple entries for <myProcess> with different pids for each entry.Kindly tell me what could be the reason for a process having multiple pids?
View 1 Replies
View Related
Sep 2, 2010
I have tried multiple times to report a bug, but can't. All I can find is this USELESS guide: [URL]Is this seriously the ONLY way to report a bug? I can't just fill out a form somewhere without running software to do it? When I try to do it the way explained in the guide, it tells me that I'm using a stable version of Xubuntu, and that only people running dev versions (like 11.10) can report bugs.Are they saying that all stable releases are perfect in every way? Surely one must be able to report a bug for them...?
View 5 Replies
View Related
Nov 28, 2010
i wonder if you can modify KDE so that users can only log in once with one session.Currently, with KDE 4.5, i have the problem that user can log in several times and then ending up with an application used in a different session which means that you can not use it in the other session.
View 2 Replies
View Related
Mar 14, 2010
I have a strange effect here, where konqueror is started multiple times. It is no problem to start it from the K-Menu. But konqueror seems to be associated with different actions in applications, e.g. many "help" entries; among others e.g. Inkscape: "Hilfe/Inkscape Handbuch" (~ Help/Inkscape handbook") If I'm unfortunate enough to hit such an item, the konqueror items start flooding my task bar, while the mouse cursor - changed to the konqueror icon - is flickering like wild, while konqueror is starting again and again. None of the windows really open and all icons disappear after some time. (due to some resource overflow, but unfortunately I can't find the relevant log entry this time) How can I prevent this ? (Or debug this, if the cause is unclear)
View 7 Replies
View Related
Oct 12, 2010
[Staff Note: This thread was spun off from here: HOWTO: Purge and Reinstall Grub 2 from the Live CD This solved the Grub problem but the crashes continue.]
Just as I get up and running again my 10.04 (64 bit) either freezes up totally, closes all windows that are open, fails to restart or shut down forcing a restart.
There's no pattern to it, i might be using the gimp or checking thunderbird emails, possibly just surfing or running bluefish. Nothing major and I'm not one to go delving under the bonnet so to speak and start tweaking things. I have the AWN dock installed and run a dual monitor setup.
Everytime it's crashed, the damn thing doesn't reboot, I get the init =bootarg message I've been reading a lot about and once again I have to run the liveCD and spend several minutes farting about purging and reinstalling grub.
I despise Windows, overall I am enjoying my ubuntu experience but things like this stop me getting any work done.
My PC ran fine for the last 2 days then suddenly it's playing up again. It's not an old machine, quad core processor, plenty of RAM.
I am having to back stuff up as soon as I do it due to so many crashes per day. I have reinstalled the OS and started again from scratch 4 times now in the last month.
The last thing I want to do is go back to Windoze but I am seriously running out of patience with ubuntu.
Boot Info Script Results:
Code:
# Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for /boot/grub.
code....
View 7 Replies
View Related
Jun 26, 2011
I have Ubuntu 11.04 on a disk, and installed it on an empty hard drive. When I start my desktop my screen is black with a flashing "_" in the top left corner... Nothing happens. I usually have to restart the computer multiple times before it will actually work. I tried running Ubuntu in recovery mode and fixing any broken packages, but no luck.
View 1 Replies
View Related
Mar 13, 2011
how can I rotate logfiles multiple times a day? I notice that the configuration for the logrotate-command is hourly, daily, weekly,.I notice that I can create a cron job where I specify the different times the log rotation need to be done:15 0,8,12,17 * * *But how do I combine these two ?
View 7 Replies
View Related
Jul 12, 2010
My 5.5 server has crashed on my multiple times over the past few weeks. I have 2 terabyte drives mirrored.It automatically reboots and seems to run fine after rebooting.I've attached a copy of the /var/log/message to this post.I was unable to paste file.I'm not if a bad disk is causing the problem or not.
View 4 Replies
View Related
Jul 15, 2010
How to open an application when fedora system starts.
View 4 Replies
View Related
Sep 11, 2010
I have an embedded server running Ubuntu which is on a network with a lot of wireless AP's. The AP's doesn't support SNMP or anything else, so I monitor if they are up or down by simply pinging them continuously.
My question is if there is anything I could install on the server that could provide me with a webpage where I could see the ping time to the AP's? So it just shows a list of the IP's I have told it to ping, and what their latest response time is. This is what I basically need, but if it were more advanced than that, and could give warnings if ping time were to high etc.
View 6 Replies
View Related
Dec 28, 2009
I'm attempting to install F12 64 bit. I currently have F10 running on this system. I'd like to do a clean install. I'm using the DVD. I boot the computer with the DVD in. I choose the first option (Install or upgrade). It starts the boot process and then it hangs. [URL]
After asking at #Fedora I was given the advice to boot with `intel_iommu=off`. That gets me slightly further in the process. It gets to the point where anaconda is starting. Then all heck breaks loose. It appears the monitor loses the signal from the computer (power light turns red just like if the computer was off). The caps lock and the scroll lock lights on the keyboard blink about once a second. The DVD drive continues to spin for about a minute and then stops. Since I have no display, I have no idea what's going on.
View 2 Replies
View Related
Oct 3, 2010
I have experienced amarok crash after which i am not able to bring it back to working state. I tried to reinstall it multiple times from standart playground and kde KDE:UpdatedApps repositories. Every time. i start amarok it hangs on splash screen consuming 49% of CPU with no signs to load completely. I guess i need to clean reinstall with deleting all tracing info form previous install?
here's output from console:
Code:
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
101003 11:21:54 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
[Code]...
View 6 Replies
View Related
Oct 15, 2010
I've reinstalled Grub2 multiple times before, but Ubuntu was on /dev/sda1, now it is not. Here is my partition table:
/dev/sda1 - 105GB - Windows
/dev/sda2 - 200GB - Extended
/dev/sda5 - 110GB - Media
[code]....
View 4 Replies
View Related
May 2, 2011
On Ubuntu 10.04 I would like to setup udev to execute a backup script when a specific USB drive is inserted. Udev detects the USB drive, but my script is executed 7 times instead of just once. Can't figure out what's wrong.
My udev rules file:
Code:
/etc/udev/rules.d# cat 20-stick.rules
ACTION=="add", ATTRS{vendor}=="Kingston", ATTRS{model}=="DataTraveler G2 ", RUN="/usr/local/bin/sync.sh"
Dummy backup script: connecting USB drive results in 7 times date written to /tmp/test
code....
View 2 Replies
View Related
May 18, 2011
I am running 11.04 with the Unity environment from a USB stick. With "Ubuntu Classic", I can open up my Home folder multiple times and thus copy files from one location to another with drag and drop. In Unity, it seems I can only open up one occurrence of the Home folder. Does anyone know if multiple Home folders can be opened up?
View 1 Replies
View Related
Oct 4, 2009
The application is Conky running under Fedora 12 Alpha. This application is set to start upon logging in to the desktop and it does just that. It appears for a second or two and then disappears from view. Although I don't see it, top tells me it is in fact running. As a result of this unexpected behavior I kill the process and restart the application using the ALT/F2 run application tool. When I do this Conky appears on the desktop and stays in view.
View 7 Replies
View Related
Aug 2, 2010
what are the programs or process that gets execututed when a linux start. ie starting from the grub (linux bootloader)
View 3 Replies
View Related
Aug 19, 2010
I just don't get it? I've attempted multiple times to get the knetworkmanager to connect to an unencrypted network, yet it keeps asking for a wep key. However the networkmanager in the Gnome version connects to unencrypted networks just fine. Why won't knetwork manager do the same?
View 9 Replies
View Related
Nov 9, 2010
It's been awhile since I've been on here. I suppose that can be considered a good thing, since I made the completely transfer to Ubuntu three months ago and everything's been running completely smoothly. Anyway, security is a pretty big thing to me. I usually change the root password, take sudo off (and default gksu, not gksudo), encrypt my hard drives, etc... One thing I also do is create a separate password for my login keyring. I don't mind having to enter one extra password at login, but it started prompting two times, and now three. It's the same password every time, so my question is..
View 4 Replies
View Related
Mar 23, 2011
I have the follwoing fenomenan. In my /etc/fstab I have an entry to automatically mount my NAS. Here is my entry:
192.168.1.10:/mnt/array1/My_NAS /media/My�40NAS nfs _netdev,
auto,rw,hard,users,intr 0 0
When my laptop boots it successfully mounts the NFS NAS and I get an icon "My NAS" on my dekstop that points to the NAS. If I double click on the icon it opens my file browser and I can browse thru my NAS fodlers.
What I see on the left hand side of the file browser is that I have to entries for My NAS. One of it has a button to shows that it is mounted and the other does not.
If I go to Places I also see 2 entries for "My NAS". One of it takes me to browsing the NAS and if I click on the other it says "Unable to mount ... busy or already mounted". Which makes sense.
View 4 Replies
View Related
Apr 10, 2010
I'm using ubuntu 8.04, and when I load some things, like some games, it tells me I need flash player 10. I have downloaded it multiple times and installed it multiple times but nothing is working as it should. Is it because I'm still on 8.04?
View 5 Replies
View Related