What is the “savings” one gets by choosing a server install over a desktop?

I’ve been using 18.04 server for several months to host a few services. I’ve recently started diving into Docker and in many of the guides I encounter they give command line calls that use NetworkManager, which is not installed with server. This is annoying to the point I’m asking myself why I’m not using Desktop.

I chose the server flavor mostly because I like the geekiness of the command line. I also figured it is less resource intensive than it’s Desktop counterpart. While I know I can install Desktop and still use the command line, but what am I “saving” by using Server over Desktop, especially if both versions use the same kernel?

If I’m using the machine as a server, how much is Desktop costing me in terms of resources and performance?

Java application gets killed in kubernetes even the resource limits and heap size are specified

Background

A spring boot Java application is deployed in a kubernetes cluster and gets killed several times per day.

I’m using openjdk:8u181-jre for my Java apps.

Kubernetes version: v1.11.5

Node os: CentOS 7.4 x64

JAVA_OPTS are set according to this post about letting java application read the cgroup limitations. https://developers.redhat.com/blog/2017/03/14/java-inside-docker/

env: - name: JAVA_OPTS   value: " -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=2 -Xms512M" resources:   requests:     memory: "4096Mi"     cpu: "1"   limits:     memory: "4096Mi"     cpu: "1" 

The nodes in the cluster are with memory of 16GiB. And the pod is requesting 4GiB.

Error

But the application get OOM killed from time to time.

The system events:

Jan 16 23:29:58 localhost kernel: java invoked oom-killer: gfp_mask=0xd0, order=0, oom_score_adj=-998 Jan 16 23:29:58 localhost kernel: java cpuset=docker-aa640424ab783e441cbd26cd25b7817e5a36deff2f44b369153d7399020d1059.scope mems_allowed=0 Jan 16 23:29:58 localhost kernel: CPU: 7 PID: 19904 Comm: java Tainted: G           OE  ------------ T 3.10.0-693.2.2.el7.x86_64 #1 Jan 16 23:29:58 localhost kernel: Hardware name: Alibaba Cloud Alibaba Cloud ECS, BIOS rel-1.7.5-0-ge51488c-20140602_164612-nilsson.home.kraxel.org 04/01/2014 Jan 16 23:29:58 localhost kernel: ffff880362700000 000000008b5adefc ffff88034078bc90 ffffffff816a3db1 Jan 16 23:29:58 localhost kernel: ffff88034078bd20 ffffffff8169f1a6 ffff8803b1642680 0000000000000001 Jan 16 23:29:58 localhost kernel: 0000000000000000 ffff880407eeaad0 ffff88034078bcd0 0000000000000046 Jan 16 23:29:58 localhost kernel: Call Trace: Jan 16 23:29:58 localhost kernel: [<ffffffff816a3db1>] dump_stack+0x19/0x1b Jan 16 23:29:58 localhost kernel: [<ffffffff8169f1a6>] dump_header+0x90/0x229 Jan 16 23:29:58 localhost kernel: [<ffffffff81185ee6>] ? find_lock_task_mm+0x56/0xc0 Jan 16 23:29:58 localhost kernel: [<ffffffff81186394>] oom_kill_process+0x254/0x3d0 Jan 16 23:29:58 localhost kernel: [<ffffffff811f52a6>] mem_cgroup_oom_synchronize+0x546/0x570 Jan 16 23:29:58 localhost kernel: [<ffffffff811f4720>] ? mem_cgroup_charge_common+0xc0/0xc0 Jan 16 23:29:58 localhost kernel: [<ffffffff81186c24>] pagefault_out_of_memory+0x14/0x90 Jan 16 23:29:58 localhost kernel: [<ffffffff8169d56e>] mm_fault_error+0x68/0x12b Jan 16 23:29:58 localhost kernel: [<ffffffff816b0231>] __do_page_fault+0x391/0x450 Jan 16 23:29:58 localhost kernel: [<ffffffff810295da>] ? __switch_to+0x15a/0x510 Jan 16 23:29:58 localhost kernel: [<ffffffff816b03d6>] trace_do_page_fault+0x56/0x150 Jan 16 23:29:58 localhost kernel: [<ffffffff816afa6a>] do_async_page_fault+0x1a/0xd0 Jan 16 23:29:58 localhost kernel: [<ffffffff816ac578>] async_page_fault+0x28/0x30 Jan 16 23:29:58 localhost kernel: Task in /kubepods.slice/kubepods-podc4e5c355_196b_11e9_b6ba_00163e066499.slice/docker-aa640424ab783e441cbd26cd25b7817e5a36deff2f44b369153d7399020d1059.scope killed as a result of limit of /kubepods.slice/kubepods-podc4e5c355_196b_11e9_b6ba_00163e066499.slice Jan 16 23:29:58 localhost kernel: memory: usage 4194304kB, limit 4194304kB, failcnt 7722 Jan 16 23:29:58 localhost kernel: memory+swap: usage 4194304kB, limit 9007199254740988kB, failcnt 0 Jan 16 23:29:58 localhost kernel: kmem: usage 0kB, limit 9007199254740988kB, failcnt 0 Jan 16 23:29:58 localhost kernel: Memory cgroup stats for /kubepods.slice/kubepods-podc4e5c355_196b_11e9_b6ba_00163e066499.slice: cache:0KB rss:0KB rss_huge:0KB mapped_file:0KB swap:0KB inactive_anon:0KB active_anon:0KB inactive_file:0KB active_file:0KB unevictable:0KB Jan 16 23:29:58 localhost kernel: Memory cgroup stats for /kubepods.slice/kubepods-podc4e5c355_196b_11e9_b6ba_00163e066499.slice/docker-58ff049ead2b1713e8a6c736b4637b64f8b6b5c9d1232101792b4d1e8cf03d6a.scope: cache:0KB rss:40KB rss_huge:0KB mapped_file:0KB swap:0KB inactive_anon:0KB active_anon:40KB inactive_file:0KB active_file:0KB unevictable:0KB Jan 16 23:29:58 localhost kernel: Memory cgroup stats for /kubepods.slice/kubepods-podc4e5c355_196b_11e9_b6ba_00163e066499.slice/docker-aa640424ab783e441cbd26cd25b7817e5a36deff2f44b369153d7399020d1059.scope: cache:32KB rss:4194232KB rss_huge:3786752KB mapped_file:8KB swap:0KB inactive_anon:0KB active_anon:4194232KB inactive_file:0KB active_file:32KB unevictable:0KB Jan 16 23:29:58 localhost kernel: [ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name Jan 16 23:29:58 localhost kernel: [19357]     0 19357      254        1       4        0          -998 pause Jan 16 23:29:58 localhost kernel: [19485]     0 19485     1071      161       7        0          -998 sh Jan 16 23:29:58 localhost kernel: [19497]     0 19497  2008713  1051013    2203        0          -998 java Jan 16 23:29:58 localhost kernel: Memory cgroup out of memory: Kill process 31404 (java) score 6 or sacrifice child Jan 16 23:29:58 localhost kernel: Killed process 19497 (java) total-vm:8034852kB, anon-rss:4188424kB, file-rss:15628kB, shmem-rss:0kB 

I’m quite confused that the Heap size should be limited to 2GiB (estimated) since the RAMFactor is set to 2. But the container is got killed. 🙁

Could you please help me to find out a correct way or method to dig into this error?

What happens when a creature wielding an Aegis of the Raven Queen gets breathed on by a fire-breathing dragon?

I know this looks very similar to this question, but I asked it to indirectly solve what I’m about to ask now (a bad idea).


The Aegis of the Raven Queen (from the module “CCC-BWM-03 A Tale of Two Towers”) is a special shield, which does not exist in D&D 5e by default but does exist in Adventurers League play. It has the following passive property:

While holding this shield, nonmagical flames are extinguished within 30 feet of you as the shadow lashes out at the flame.

I also know that breath weapons are considered nonmagical.

What happens when a dragon breathes fire on a creature wielding this special shield?

  1. The breath gets extinguished (and thus doesn’t affect the Aegis-wielding creature)
  2. The breath weapon works as normal, since it doesn’t really emit “flames” in game terms (and thus the Aegis-wielding creature is forced to make the Dexterity saving throw as normal)

New Client Gets No Internet Access after OpenVPN Server Runs for a while?

This is an OpenVPN server running on a ubuntu 16.04 server for (500+) mobile users to get access to blocked (government censored) content on internet. I noticed that after the server is running for a while, new client cannot access internet at all, even though they have successfully been assigned a virtual ip (i.e. 10.8.0.2).

I am skeptical that there might be some IP routing issues with my settings. But I am quite new to OpenVPN so seeking expertise here.

Can anyone kindly share some guidance on how to resolve it? Thanks a million.

My Server.conf looks like:

port 1194 proto udp dev tun sndbuf 0 rcvbuf 0 ca ca.crt cert server.crt key server.key dh dh.pem auth SHA512 tls-auth ta.key 0 topology subnet server 10.8.0.0 255.255.248.0 ifconfig-pool-persist ipp.txt push "redirect-gateway def1 bypass-dhcp" push "dhcp-option DNS 8.8.8.8" push "dhcp-option DNS 8.8.4.4" keepalive 10 120 cipher AES-256-CBC user nobody group nogroup persist-key persist-tun status openvpn-status.log verb 3 crl-verify crl.pem duplicate-cn management localhost 7505 

my ip route output:

default via 54.39.144.1 dev ens3 10.8.0.0/22 dev tun0  proto kernel  scope link  src 10.8.0.1 54.39.144.1 dev ens3  scope link 

ifconfig output:

ens3      Link encap:Ethernet  HWaddr fa:16:3e:eb:75:9d           inet addr:54.39.146.225  Bcast:54.39.146.225  Mask:255.255.255.255           inet6 addr: fe80::f816:3eff:feeb:759d/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:1098622198 errors:0 dropped:0 overruns:0 frame:0           TX packets:1088351808 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:874993245096 (874.9 GB)  TX bytes:891426009768 (891.4 GB)  lo        Link encap:Local Loopback           inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:160 errors:0 dropped:0 overruns:0 frame:0           TX packets:160 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1           RX bytes:11840 (11.8 KB)  TX bytes:11840 (11.8 KB)  tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00           inet addr:10.8.0.1  P-t-P:10.8.0.1  Mask:255.255.252.0           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1           RX packets:2804880 errors:0 dropped:0 overruns:0 frame:0           TX packets:3468969 errors:0 dropped:76399 overruns:0 carrier:0           collisions:0 txqueuelen:100           RX bytes:514432354 (514.4 MB)  TX bytes:3980583625 (3.9 GB) 

Get 1500 Medium Claps to 3 Articles Each One Gets 500+ for $1

Get 1500 Medium Claps to 3 Articles Each One Gets 500+ for Only $ 1. All Our Accounts are Aged and Active. And Our World Wide Users will Clapping to Your Article and Follow’s your Account with Different Real IP’s. And We Had So Many Services, Every or Any Service is for $ 1 Only.All Claps and Follow’s are Life Time.

by: MicroContracts
Created: —
Category: Social Networks
Viewed: 229


Turkish e-Visa Validity if passport gets stolen or you get a new

I issued myself a Turkish e-visa as I was travelling to the united kingdom and I was eligible to get e-visa as a Pakistani citizen, but due to some situation I wasn’t able to use that visa and now my passport got lost and I applied for a new UK Visa which I will get shortly.

Will my e-visa for turkey will be valid or do I have to get the new e-visa?

mails from inbox gets removed if i reply or forward some mail

I had made some changes in gmail account due to which, if I reply to or forward some mail then it deletes the basis mail from my inbox automatically. If I want it back in inbox then i need to search the mail with subject and then mark it in inbox then the same mail comes back to inbox. Please solve this problem.

Discount Rule Gets Deactivated Randomely

I have created one discount rule for entire store. As per the rule the all products are sold with 15% off. There is no other rule at any level.

This rule gets deactivated randomly. To again activate it, I have to run reindex command using ssh.

Just to try I created one cron job for reindexing by reading some article. This cron job runs at every 12hrs.

Issue not resolved.

Thanks, Niraj