Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a setup and cli check for the recommended memory limit #10539

Merged
merged 7 commits into from
Aug 21, 2018

Conversation

weeman1337
Copy link
Member

Introduces the MemoryInfo class that handles the memory limit query. I didn't put it into the public namespace.

Closes #8642

@juliusknorr juliusknorr added enhancement 3. to review Waiting for reviews papercut Annoying recurring issue with possibly simple fix. labels Aug 9, 2018
@@ -273,6 +273,10 @@ public function __construct($webRoot, \OC\Config $config) {
});
$this->registerAlias('SystemTagManager', \OCP\SystemTag\ISystemTagManager::class);

$this->registerService(MemoryInfo::class, function() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should not be required but work automatically

@rullzer rullzer added this to the Nextcloud 14 milestone Aug 9, 2018
@rullzer
Copy link
Member

rullzer commented Aug 9, 2018

Lets also try to get this into 14.

@weeman1337 weeman1337 force-pushed the feature-8642-memory-check branch 2 times, most recently from 47f9fdb to 71a3ae5 Compare August 9, 2018 17:56
@rullzer rullzer force-pushed the feature-8642-memory-check branch from 71a3ae5 to d4f26eb Compare August 10, 2018 11:20
@rullzer
Copy link
Member

rullzer commented Aug 10, 2018

I rebased. Squased the last commit in the first one. And bumped the autoloader.

@rullzer rullzer force-pushed the feature-8642-memory-check branch from d4f26eb to 6211577 Compare August 10, 2018 11:26
weeman1337 and others added 5 commits August 20, 2018 15:24
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
…w the recommended value

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@skjnldsv skjnldsv force-pushed the feature-8642-memory-check branch from 6211577 to ce1e213 Compare August 20, 2018 13:25
@skjnldsv
Copy link
Member

Rebased and cleaned up.

@skjnldsv skjnldsv requested a review from blizzz August 20, 2018 13:26
@@ -0,0 +1,60 @@
<?php
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

declare strict types, please, and also the license header as found on other PHP files

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review. I added the license texts and PHP strict mode.

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for me! Awesome work!! 🤗

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke MorrisJobke merged commit 3836993 into master Aug 21, 2018
@MorrisJobke MorrisJobke deleted the feature-8642-memory-check branch August 21, 2018 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement papercut Annoying recurring issue with possibly simple fix.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants