Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mark-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
mark-web
Commits
3b3dc8b1
Commit
3b3dc8b1
authored
4 years ago
by
Alex
Browse files
Options
Downloads
Patches
Plain Diff
Add some log information to identify where is the memory leaking
parent
3fb8e048
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Include Wowa Training
Pipeline
#5405
passed
4 years ago
Stage: test
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/Jobs/WowaJob.php
+7
-2
7 additions, 2 deletions
app/Jobs/WowaJob.php
env.docker
+1
-1
1 addition, 1 deletion
env.docker
with
8 additions
and
3 deletions
app/Jobs/WowaJob.php
+
7
−
2
View file @
3b3dc8b1
...
...
@@ -40,6 +40,10 @@ class WowaJob implements ShouldQueue
*/
public
function
handle
()
{
$memory
=
memory_get_usage
();
$logger
=
new
Logger
(
'wowa-training-test'
);
$logger
->
pushHandler
(
new
StreamHandler
(
DIR
.
'/app.log'
,
Logger
::
DEBUG
));
$logger
->
debug
(
"Job Beginning"
);
$this
->
wowa
->
status
=
Wowa
::
STATE_RUNNING
;
$this
->
wowa
->
start_time
=
time
();
$this
->
wowa
->
save
();
...
...
@@ -49,9 +53,11 @@ class WowaJob implements ShouldQueue
$this
->
wowa
->
save
();
return
;
}
$logger
->
debug
(
"Begin find all related evidences"
);
$evidences
=
[];
$is_true_alert
=
[];
foreach
(
$this
->
feedbacks
as
$feedback
)
{
$logger
->
debug
(
"Memory usage : "
.
memory_get_usage
()
-
$memory
);
$evidence_references
=
$feedback
->
report
()
->
references
;
$is_true_alert
[]
=
$feedback
->
is_true_alert
;
$scores_references
=
[];
...
...
@@ -60,8 +66,7 @@ class WowaJob implements ShouldQueue
}
$evidences
[]
=
$scores_references
;
}
$logger
=
new
Logger
(
'wowa-training-test'
);
$logger
->
pushHandler
(
new
StreamHandler
(
DIR
.
'/app.log'
,
Logger
::
DEBUG
));
$logger
->
debug
(
"End find all related evidences"
);
$training_prameters
=
new
TrainerParameters
(
$logger
,
$this
->
wowa
->
population
,
...
...
This diff is collapsed.
Click to expand it.
env.docker
+
1
−
1
View file @
3b3dc8b1
APP_NAME=MARK
APP_ENV=prod
APP_KEY=base64:42cUpwYMEYjS3fifEDm2RN2kjmNtnPHm1tZPMblKGIw=
APP_DEBUG=
fals
e
APP_DEBUG=
tru
e
APP_URL=http://localhost:8000
LOG_CHANNEL=stack
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment