Server environment: Linux RHEL5 x86_64, Apache, PHP Client environment: Windows 10 64 bit (VirtualBox MacOS host), 4GB Ram, 30GB free space, Browser IE11 (also tested with Edge/Firefox), 7zip The scenario is the following: I upload a zip (there is a file inside the archive that is 2.5GB) via browser to my PHP…
Tag: linux
Scrapy KeyError in Linux Server but not on Windows
My Scrapy works just fine on my local machine, Windows. Then I try to run it on my AWS Linux server, but I got this Why is that? How can I run it on my Linux Server? Answer Suddenly solved and I confused myself. I solve it by updating all the requirements using pip install -r requirements.txt. I added Scrapy
How to store command output into array in Ansible?
Essentially, I want to be able to handle “wildcard filenames” in Linux using ansible. In essence, this means using the ls command with part of a filename followed by an “*” so that it will list ONLY certain files. However, I cannot store the output properly in a variable as there will …
can /proc/self/exe be mmap’ed?
Can a process read /proc/self/exe using mmap? This program fails to mmap the file: Answer You are making 2 mistakes here: Mapped size must be > 0. Zero-size mappings are invalid. You have to specify, if you want to create a shared (MAP_SHARED) or a private (MAP_PRIVATE) mapping. The following should work f…
Mitigating memory leaks by forking
This is a really ugly question. I have a C++ program which does the following in a loop: Waits for a JMS message Calculates some data Sends a JMS message in response My program (let’s call it “Bob”) has a rather severe memory leak. The memory leak is located in a shared library that someone …
Signals in ppoll not handled immediately
I wrote a small ppoll test but I am confused about the signal handling. The man page says: The relationship between poll() and ppoll() is analogous to the relationship between select(2) and pselect(2): like pselect(2), ppoll() allows an application to safely wait until either a file descriptor becomes ready o…
How does perf associate events to functions?
More precisely how does the perf tool associate PMU events to functions i already realized that when the kernel perf subsystem records the event counters it also records the Program Counter (PC) so it can associate the count to a function. However to really get fine grain result, you need to sample the counte…
linux files and folders are not inheriting parent directory permissions
I created a directory /share and gave chmod 2770 permission and chown root:stock /share. 1) When I create touch a file inside /share, I see the file has rw-rw-r– and I don’t see rwxrws— 2) When I create a directory in /share/data I see the permission as drwxrwsr-x where are the parent direct…
Using screen on Synology (DSM6): “Cannot find termcap entry for ‘xterm-256color”
Using screen on Synology (DSM6) I get the error Cannot find termcap entry for ‘xterm-256color’ when I type screen. I am aware of the quick fix from this question Unix screen utility error: Cannot find termcap entry for ‘xterm-256color’. So TERM=xterm screen does work and launches scree…
Convert curl request into http request?
I am trying to convert the curl request below into an HTTP request for the postman tool. The postman tool might not really matter in this question. Please tell me how I can convert curl to http. What I tried/learned: – Set headers content-type: json/application, X-apiKey from curl docs, -d option means …