I'm using docker xampp to host a wordpress site.
It's on the Ubuntu Server 22.04.
I found that if I open each session or let's say each tab in browser connected to the website, the memory usage on the server increase 3x~5x MB. (watched by free -h).
That's a crazy memory usage. On windows with xampp native 1 session only cost 2~5MB on server.
What's going wrong? shoud I use apache + mysql + php by independent, instead of xampp in docker?
Related
I am trying to run the infinispan docker image on a Windows 10 machine with docker desktop for windows.
I wrote a small test Java program that connects to localhost:11222 using hotrod and accesses a cache.
The problem is that after the initial connect the client receives from the server a new address 172.17.0.3:11222 and it fails connecting to this address because this is a docker internal one and
docker desktop for windows cannot route messages directly to an internal container address.
Is there any workaround available in infinispan or on the windows machine ?
The simplest solution is to disable the handling of topology updates in your Hot Rod client:
infinispan.client.hotrod.client_intelligence=BASIC
More information about client intelligence here.
Note that this is not recommended in production: the client will ignore new servers coming up and it will keep trying to contact the servers in the initial server list long after they stop.
I have a Windows 7 PC with Forefront TMG proxy. There is a VirtualBox virtual machine installed with Ubuntu 16.04 (64-bit) guest OS. I'm not a seasoned Unix-user, so I tried to configure Ubuntu's network through GUI window.
After several tries I wound up with these settings:
https://i.stack.imgur.com/in4yR.jpg
All works fine now. I can use browser and git and do various network stuff. But!
I have a Rails application, which uses a remote PostgreSQL database. When I start my Rails server, it throws this exception:
Puma caught this error: could not connect to server: Network is unreachable
Is the server running on host "this_is_the_host_url" and accepting
TCP/IP connections on port 5432?
(PG:ConnectionBad)
This applications works fine on the other PC with similar Windows 7 and VB Ubuntu, but without a proxy. Also I tried to reach the remote DB-server from my host Win7 with PGAdmin - all works fine, even with proxy. The issue is somewhere between my Ubuntu guest OS and my Windows host OS.
Should I configure proxy settings in Ubuntu in a different way?
Any other way to resolve this issue?
Traceroute shows this:
1 10.0.2.2 (10.0.2.2) 0.638 ms 0.577 ms 0.549 ms
2 10.0.2.2 (10.0.2.2) 29.369 ms !N 53.000 ms !N 75.644 !N
As I can get it, 10.0.2.2 is my host OS ip.
I searched through the web, but all I could get belongs to the opposite side: to reach to the proxied VB Ubuntu, not from it.
So I am trying to run my code on an Amazon EC2 instance running Ubuntu Server 14.04 LTS.
I realized that my code is breaking with the following error when imshow() is called:
: cannot connect to X server localhost:10.0
I an connecting through putty and I have selected "Enable X11 Forwarding".
I can remove all imshow calls but I actually need to use them. Is there a way to enable this functionality while connecting to the EC2 instance through Putty ?
You also need to be running an X windows server on your desktop (where you're running putty). There are several available, and setup depends on which you choose. If you want a very easy solution, there's MobaXterm, which is an ssh client and X11 server combined. There's a commercial version and a free home edition (with some limitations).
I have some problem with my WAMP server and I downloaded from the official website. I wanted to use only for the local server (for Chrome), without WordPress, only for HTML/CSS/JS files. The servers (Apache, PHP and MySql) and the localhost webpage has оpen, but when I try to open my projects it's giving me the error:
This webpage is not available ERR_NAME_NOT_RESOLVED: and in details:
The server at problem%201 can't be found, because the DNS lookup
failed. DNS is the network service that translates a website's name to
its Internet address. This error is most often caused by having no
connection to the Internet or a misconfigured network. It can also be
caused by an unresponsive DNS server or a firewall preventing Google
Chrome from accessing the network.
P.S. OS: Windows 8.1 Pro N
I'm using apache 2.4.1 on windows and I'm trying to optimize my website www.xgclan.com loading speed with http://www.webpagetest.org.
I noticed that the download time is quite long in the report.
Today I downloaded the Windows 8 preview to my server as mirror, I put it on my apache server and tried downloading it with my home connection, the speed was only 500 KB/s.
My server has an 100 Mb/s duplex connection and task manager indicates that only 7% of the bandwidth is used.
I have 120Mb/s down at home and I ran a speedtest to make sure its not an issue with my home connection.
Downloading works fine on the server so I think its an issue with apache or windows server 2008 R2.
Can anybody help me so I can use my full 100 Mb/s upload?
This issue was caused by EnableSendfile on, after turning this off I was able to use the full connection speed.